From 3b3aebb1247d29894c34c06ab4837c13917e4967 Mon Sep 17 00:00:00 2001
From: Yuanhang Zhang <sailordiary@users.noreply.github.com>
Date: 星期二, 21 三月 2023 17:23:26 +0800
Subject: [PATCH] Fix timestamp prediction on empty ASR outputs
---
funasr/utils/timestamp_tools.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/funasr/utils/timestamp_tools.py b/funasr/utils/timestamp_tools.py
index 423110c..0dffd8d 100644
--- a/funasr/utils/timestamp_tools.py
+++ b/funasr/utils/timestamp_tools.py
@@ -17,7 +17,7 @@
sil_in_str=True
):
if not len(char_list):
- return []
+ return "", []
START_END_THRESHOLD = 5
MAX_TOKEN_DURATION = 12
TIME_RATE = 10.0 * 6 / 1000 / 3 # 3 times upsampled
--
Gitblit v1.9.1