From 49c00a7d6cb9c05d4bd0bb0fc8b59a2eed4b8950 Mon Sep 17 00:00:00 2001
From: huangmingming <huangmingming@deepscience.cn>
Date: 星期一, 13 三月 2023 12:07:11 +0800
Subject: [PATCH] grpc client remove VAD
---
funasr/utils/timestamp_tools.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/funasr/utils/timestamp_tools.py b/funasr/utils/timestamp_tools.py
index f6a6e98..4a367f8 100644
--- a/funasr/utils/timestamp_tools.py
+++ b/funasr/utils/timestamp_tools.py
@@ -4,6 +4,7 @@
import numpy as np
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 []
@@ -54,6 +55,7 @@
res.append([int(timestamp[0] * 1000), int(timestamp[1] * 1000)])
return res
+
def time_stamp_sentence(punc_id_list, time_stamp_postprocessed, text_postprocessed):
res = []
if text_postprocessed is None:
--
Gitblit v1.9.1