fix: any_to_mp3
This commit is contained in:
parent
b819e6634e
commit
dd6eee6e26
@ -37,7 +37,7 @@ class BaseSpeechToTextNode(ISpeechToTextNode):
|
|||||||
temp_mp3_path = temp_amr_file.name
|
temp_mp3_path = temp_amr_file.name
|
||||||
any_to_mp3(temp_file_path, temp_mp3_path)
|
any_to_mp3(temp_file_path, temp_mp3_path)
|
||||||
try:
|
try:
|
||||||
return split_and_transcribe(temp_file_path, model)
|
return split_and_transcribe(temp_mp3_path, model)
|
||||||
finally:
|
finally:
|
||||||
os.remove(temp_file_path)
|
os.remove(temp_file_path)
|
||||||
os.remove(temp_mp3_path)
|
os.remove(temp_mp3_path)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user