fix asr vad

This commit is contained in:
游雁 2023-02-09 16:40:15 +08:00
parent 235ecbc9b7
commit 07381a8632
2 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ def inference_modelscope(
text_postprocessed, time_stamp_postprocessed, word_lists = postprocessed_result[0], \
postprocessed_result[1], \
postprocessed_result[2]
text_postprocessed_punc = ""
text_postprocessed_punc = text_postprocessed
if len(word_lists) > 0 and text2punc is not None:
text_postprocessed_punc, punc_id_list = text2punc(word_lists, 20)

View File

@ -612,7 +612,7 @@ def inference_modelscope(
text_postprocessed, time_stamp_postprocessed, word_lists = postprocessed_result[0], \
postprocessed_result[1], \
postprocessed_result[2]
text_postprocessed_punc = ""
text_postprocessed_punc = text_postprocessed
if len(word_lists) > 0 and text2punc is not None:
text_postprocessed_punc, punc_id_list = text2punc(word_lists, 20)