funasr/bin/asr_inference_paraformer_vad_punc.py
@@ -58,7 +58,7 @@ Examples: >>> import soundfile >>> speech2text = Speech2Text("asr_config.yml", "asr.pth") >>> speech2text = Speech2Text("asr_config.yml", "asr.pb") >>> audio, rate = soundfile.read("speech.wav") >>> speech2text(audio) [(text, token, token_int, hypothesis object), ...] @@ -674,6 +674,7 @@ ibest_writer["time_stamp"][key] = "{}".format(time_stamp_postprocessed) logging.info("decoding, utt: {}, predictions: {}".format(key, text_postprocessed_punc)) import pdb; pdb.set_trace() return asr_result_list return _forward