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