fix: fix bailian stt

v3.2
wxg0103 2024-12-23 14:04:21 +08:00
parent 53f4e11145
commit 8666973519
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class AliyunBaiLianSpeechToText(MaxKBBaseModel, BaseSpeechToText):
dashscope.api_key = self.api_key
recognition = Recognition(model=self.model,
format='mp3',
sample_rate=16000,
callback=None)
with tempfile.NamedTemporaryFile(delete=False) as temp_file:
# 将上传的文件保存到临时文件中