shixian.shi
2023-02-21 03250ae6349127e8541746a224cfabbed510b451
timestamp func bug fix
1个文件已修改
2 ■■■■■ 已修改文件
funasr/utils/timestamp_tools.py 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/utils/timestamp_tools.py
@@ -5,6 +5,8 @@
from typing import Any, List, Tuple, Union
def time_stamp_lfr6_pl(us_alphas, us_cif_peak, char_list, begin_time=0.0, end_time=None):
    if not len(char_list):
        return []
    START_END_THRESHOLD = 5
    TIME_RATE = 10.0 * 6 / 1000 / 3  #  3 times upsampled
    if len(us_alphas.shape) == 3: