From e30a17cf4e715b3d139fa1e0ba01cda1bcf0f884 Mon Sep 17 00:00:00 2001
From: shixian.shi <shixian.shi@alibaba-inc.com>
Date: 星期三, 10 一月 2024 11:23:41 +0800
Subject: [PATCH] update funasr-onnx
---
examples/industrial_data_pretraining/fsmn_vad/infer.sh | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/examples/industrial_data_pretraining/fsmn_vad/infer.sh b/examples/industrial_data_pretraining/fsmn_vad/infer.sh
index 94e1b3d..dedd14a 100644
--- a/examples/industrial_data_pretraining/fsmn_vad/infer.sh
+++ b/examples/industrial_data_pretraining/fsmn_vad/infer.sh
@@ -1,13 +1,11 @@
-# download model
-local_path_root=../modelscope_models
-mkdir -p ${local_path_root}
-local_path=${local_path_root}/speech_fsmn_vad_zh-cn-16k-common-pytorch
-git clone https://www.modelscope.cn/damo/speech_fsmn_vad_zh-cn-16k-common-pytorch.git ${local_path}
+model="damo/speech_fsmn_vad_zh-cn-16k-common-pytorch"
+model_revision="v2.0.0"
python funasr/bin/inference.py \
-+model="${local_path}" \
-+input="${local_path}/example/vad_example.wav" \
++model=${model} \
++model_revision=${model_revision} \
++input="https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/vad_example.wav" \
+output_dir="./outputs/debug" \
+device="cpu" \
--
Gitblit v1.9.1