fix: any_to_mp3

This commit is contained in:
wxg0103 2024-12-18 09:45:52 +08:00 committed by wxg
parent b819e6634e
commit dd6eee6e26

View File

@ -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)