update:所有ASR均改为PCM直接识别,通过delete_audio参数判断要不要储存wav

This commit is contained in:
MakerZorky
2025-04-29 01:28:06 +08:00
parent f490c15282
commit 16e77b02c2
5 changed files with 59 additions and 40 deletions
@@ -9,8 +9,8 @@ logger = setup_logging()
class ASRProviderBase(ABC):
@abstractmethod
def save_audio_to_file(self, opus_data: List[bytes], session_id: str) -> str:
"""解码Opus数据保存为WAV文件"""
def save_audio_to_file(self, pcm_data: List[bytes], session_id: str) -> str:
"""PCM数据保存为WAV文件"""
pass
@abstractmethod