mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: fix bailian stt
This commit is contained in:
parent
53f4e11145
commit
8666973519
|
|
@ -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:
|
||||
# 将上传的文件保存到临时文件中
|
||||
|
|
|
|||
Loading…
Reference in New Issue