add:asr赋值audio_format

This commit is contained in:
hrz
2025-05-08 11:11:28 +08:00
parent ba86b34a8c
commit c2e000f937
5 changed files with 72 additions and 55 deletions
@@ -253,7 +253,7 @@ class ASRProvider(ASRProviderBase):
if self.audio_format == "pcm":
pcm_data = opus_data
else:
pcm_data = self.decode_opus(opus_data, session_id)
pcm_data = self.decode_opus(opus_data)
combined_pcm_data = b"".join(pcm_data)
# 判断是否保存为WAV文件