mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-05 04:22:46 +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"]
|
||||
output.append(f"{input_folder}/{name}|{output_file_name}|{language.upper()}|{text}")
|
||||
except:
|
||||
return print(traceback.format_exc())
|
||||
print(traceback.format_exc())
|
||||
|
||||
output_folder = output_folder or "output/asr_opt"
|
||||
os.makedirs(output_folder, exist_ok=True)
|
||||
@ -73,4 +73,4 @@ if __name__ == '__main__':
|
||||
output_folder = cmd.output_folder,
|
||||
model_size = cmd.model_size,
|
||||
language = cmd.language,
|
||||
)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user