Skip to content

Commit

Permalink
fix: fix bailian stt
Browse files Browse the repository at this point in the history
  • Loading branch information
wxg0103 committed Dec 23, 2024
1 parent 53f4e11 commit 8666973
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def speech_to_text(self, audio_file):
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:
# 将上传的文件保存到临时文件中
Expand Down

0 comments on commit 8666973

Please sign in to comment.