From d20c030e5b75306dd67e8fe9924d5d94eac1bf30 Mon Sep 17 00:00:00 2001
From: wusong <63332221+wusong1128@users.noreply.github.com>
Date: 星期三, 25 九月 2024 15:11:50 +0800
Subject: [PATCH] 解决python ws服务针对尾部非人声录音无结束标识返回的问题 (#2102)
---
examples/industrial_data_pretraining/fsmn_vad_streaming/demo.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/examples/industrial_data_pretraining/fsmn_vad_streaming/demo.py b/examples/industrial_data_pretraining/fsmn_vad_streaming/demo.py
index 0f30a37..21ce0cb 100644
--- a/examples/industrial_data_pretraining/fsmn_vad_streaming/demo.py
+++ b/examples/industrial_data_pretraining/fsmn_vad_streaming/demo.py
@@ -9,11 +9,9 @@
model = AutoModel(model="iic/speech_fsmn_vad_zh-cn-16k-common-pytorch")
-mm = model.model
-for p in mm.parameters():
- print(f"{p.numel()}")
res = model.generate(input=wav_file)
print(res)
+
# [[beg1, end1], [beg2, end2], .., [begN, endN]]
# beg/end: ms
--
Gitblit v1.9.1