From 4ace5a95b052d338947fc88809a440ccd55cf6b4 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期四, 16 十一月 2023 16:39:52 +0800
Subject: [PATCH] funasr pages
---
egs_modelscope/vad/speech_fsmn_vad_zh-cn-8k-common/demo_online.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/egs_modelscope/vad/speech_fsmn_vad_zh-cn-8k-common/demo_online.py b/egs_modelscope/vad/speech_fsmn_vad_zh-cn-8k-common/demo_online.py
index a8cc912..d777089 100644
--- a/egs_modelscope/vad/speech_fsmn_vad_zh-cn-8k-common/demo_online.py
+++ b/egs_modelscope/vad/speech_fsmn_vad_zh-cn-8k-common/demo_online.py
@@ -7,11 +7,11 @@
import soundfile
if __name__ == '__main__':
- output_dir = None
- inference_pipline = pipeline(
+ output_dir = "./results"
+ inference_pipeline = pipeline(
task=Tasks.voice_activity_detection,
model="damo/speech_fsmn_vad_zh-cn-8k-common",
- model_revision='v1.2.0',
+ model_revision=None,
output_dir=output_dir,
batch_size=1,
mode='online',
@@ -30,7 +30,7 @@
else:
is_final = False
param_dict['is_final'] = is_final
- segments_result = inference_pipline(audio_in=speech[sample_offset: sample_offset + step],
+ segments_result = inference_pipeline(audio_in=speech[sample_offset: sample_offset + step],
param_dict=param_dict)
print(segments_result)
--
Gitblit v1.9.1