From 273d0d6015a4655cb34cc77cee2c3267a23d7d03 Mon Sep 17 00:00:00 2001
From: 九耳 <mengzhe.cmz@alibaba-inc.com>
Date: 星期五, 03 二月 2023 13:09:05 +0800
Subject: [PATCH] update punc and asr_inference_paraformer_vad_punc

---
 funasr/bin/asr_inference.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/funasr/bin/asr_inference.py b/funasr/bin/asr_inference.py
index 985ff50..4c6d2a4 100644
--- a/funasr/bin/asr_inference.py
+++ b/funasr/bin/asr_inference.py
@@ -368,7 +368,7 @@
 #         except TooShortUttError as e:
 #             logging.warning(f"Utterance {keys} {e}")
 #             hyp = Hypothesis(score=0.0, scores={}, states={}, yseq=[])
-#             results = [[" ", ["<space>"], [2], hyp]] * nbest
+#             results = [[" ", ["sil"], [2], hyp]] * nbest
 #
 #         # Only supporting batch_size==1
 #         key = keys[0]
@@ -575,7 +575,7 @@
             except TooShortUttError as e:
                 logging.warning(f"Utterance {keys} {e}")
                 hyp = Hypothesis(score=0.0, scores={}, states={}, yseq=[])
-                results = [[" ", ["<space>"], [2], hyp]] * nbest
+                results = [[" ", ["sil"], [2], hyp]] * nbest
             
             # Only supporting batch_size==1
             key = keys[0]

--
Gitblit v1.9.1