From dd6eee6e2623b699d7e2b99e03d23810e50803a8 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 18 Dec 2024 09:45:52 +0800 Subject: [PATCH] fix: any_to_mp3 --- .../speech_to_text_step_node/impl/base_speech_to_text_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/application/flow/step_node/speech_to_text_step_node/impl/base_speech_to_text_node.py b/apps/application/flow/step_node/speech_to_text_step_node/impl/base_speech_to_text_node.py index b4806c537..1660fe1ef 100644 --- a/apps/application/flow/step_node/speech_to_text_step_node/impl/base_speech_to_text_node.py +++ b/apps/application/flow/step_node/speech_to_text_step_node/impl/base_speech_to_text_node.py @@ -37,7 +37,7 @@ class BaseSpeechToTextNode(ISpeechToTextNode): temp_mp3_path = temp_amr_file.name any_to_mp3(temp_file_path, temp_mp3_path) try: - return split_and_transcribe(temp_file_path, model) + return split_and_transcribe(temp_mp3_path, model) finally: os.remove(temp_file_path) os.remove(temp_mp3_path)