mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-06 03:57:44 +08:00
Update funasr_asr.py
This commit is contained in:
parent
2fa74ecb94
commit
d82f6bbb98
@ -43,7 +43,7 @@ def execute_asr(input_folder, output_folder, model_size, language):
|
|||||||
text = model.generate(input="%s/%s"%(input_folder, name))[0]["text"]
|
text = model.generate(input="%s/%s"%(input_folder, name))[0]["text"]
|
||||||
output.append(f"{input_folder}/{name}|{output_file_name}|{language.upper()}|{text}")
|
output.append(f"{input_folder}/{name}|{output_file_name}|{language.upper()}|{text}")
|
||||||
except:
|
except:
|
||||||
return print(traceback.format_exc())
|
print(traceback.format_exc())
|
||||||
|
|
||||||
output_folder = output_folder or "output/asr_opt"
|
output_folder = output_folder or "output/asr_opt"
|
||||||
os.makedirs(output_folder, exist_ok=True)
|
os.makedirs(output_folder, exist_ok=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user