From 78e4f729be82b515480759addb64bd8d4e124dca Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期二, 24 十月 2023 19:52:44 +0800
Subject: [PATCH] add check for chunk_size_vec

---
 funasr/runtime/python/libtorch/funasr_torch/utils/timestamp_utils.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/funasr/runtime/python/libtorch/funasr_torch/utils/timestamp_utils.py b/funasr/runtime/python/libtorch/funasr_torch/utils/timestamp_utils.py
index 3a01812..7d0060c 100644
--- a/funasr/runtime/python/libtorch/funasr_torch/utils/timestamp_utils.py
+++ b/funasr/runtime/python/libtorch/funasr_torch/utils/timestamp_utils.py
@@ -3,7 +3,7 @@
 
 def time_stamp_lfr6_onnx(us_cif_peak, char_list, begin_time=0.0, total_offset=-1.5):
     if not len(char_list):
-        return []
+        return '', []
     START_END_THRESHOLD = 5
     MAX_TOKEN_DURATION = 30
     TIME_RATE = 10.0 * 6 / 1000 / 3  #  3 times upsampled

--
Gitblit v1.9.1