From 33d3d2084403fd34b79c835d2f2fe04f6cd8f738 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期三, 13 九月 2023 09:33:54 +0800
Subject: [PATCH] Merge branch 'main' of github.com:alibaba-damo-academy/FunASR add

---
 funasr/runtime/run_server_2pass.sh |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/funasr/runtime/run_server_2pass.sh b/funasr/runtime/run_server_2pass.sh
index b6a0996..2e3977c 100644
--- a/funasr/runtime/run_server_2pass.sh
+++ b/funasr/runtime/run_server_2pass.sh
@@ -13,10 +13,23 @@
 . ../../egs/aishell/transformer/utils/parse_options.sh || exit 1;
 
 cd /workspace/FunASR/funasr/runtime/websocket/build/bin
+if [ -z "$certfile" ] || [ "$certfile" -eq 0 ]; then
 ./funasr-wss-server-2pass  \
   --download-model-dir ${download_model_dir} \
   --model-dir ${model_dir} \
-  --online-model-dir ${online_model_dir}
+  --online-model-dir ${online_model_dir} \
+  --vad-dir ${vad_dir} \
+  --punc-dir ${punc_dir} \
+  --decoder-thread-num ${decoder_thread_num} \
+  --io-thread-num  ${io_thread_num} \
+  --port ${port} \
+  --certfile  "" \
+  --keyfile ""
+else
+./funasr-wss-server-2pass  \
+  --download-model-dir ${download_model_dir} \
+  --model-dir ${model_dir} \
+  --online-model-dir ${online_model_dir} \
   --vad-dir ${vad_dir} \
   --punc-dir ${punc_dir} \
   --decoder-thread-num ${decoder_thread_num} \
@@ -24,4 +37,4 @@
   --port ${port} \
   --certfile  ${certfile} \
   --keyfile ${keyfile}
-
+fi

--
Gitblit v1.9.1