From d82f6bbb98ba725e6725dcee99b80ce71fb0bf28 Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Mon, 12 Feb 2024 18:03:40 +0800 Subject: [PATCH] Update funasr_asr.py --- tools/asr/funasr_asr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/asr/funasr_asr.py b/tools/asr/funasr_asr.py index 106d7d1..6aa3038 100644 --- a/tools/asr/funasr_asr.py +++ b/tools/asr/funasr_asr.py @@ -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, - ) \ No newline at end of file + )