From 2e36e738ca39afc8d02f3d11013bd12f937cc874 Mon Sep 17 00:00:00 2001
From: zhaomingwork <61895407+zhaomingwork@users.noreply.github.com>
Date: 星期三, 08 十一月 2023 09:22:06 +0800
Subject: [PATCH] fix bug for h5 hotwords (#1067)

---
 egs_modelscope/vad/TEMPLATE/README_zh.md |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/egs_modelscope/vad/TEMPLATE/README_zh.md b/egs_modelscope/vad/TEMPLATE/README_zh.md
index a1b1916..8157e07 100644
--- a/egs_modelscope/vad/TEMPLATE/README_zh.md
+++ b/egs_modelscope/vad/TEMPLATE/README_zh.md
@@ -24,7 +24,7 @@
 #### [FSMN-VAD-瀹炴椂妯″瀷](https://modelscope.cn/models/damo/speech_fsmn_vad_zh-cn-16k-common-pytorch/summary)
 ```python
 inference_pipeline = pipeline(
-    task=Tasks.auto_speech_recognition,
+    task=Tasks.voice_activity_detection,
     model='damo/speech_fsmn_vad_zh-cn-16k-common-pytorch',
     )
 import soundfile
@@ -36,7 +36,7 @@
 speech_chunk = speech[0:chunk_stride] 
 rec_result = inference_pipeline(audio_in=speech_chunk, param_dict=param_dict)
 print(rec_result)
-# next chunk, 480ms
+# next chunk, 100ms
 speech_chunk = speech[chunk_stride:chunk_stride+chunk_stride]
 rec_result = inference_pipeline(audio_in=speech_chunk, param_dict=param_dict)
 print(rec_result)

--
Gitblit v1.9.1