From 6761eb3efa625b8611a642e793dbdb5a29af5a84 Mon Sep 17 00:00:00 2001
From: zhaomingwork <61895407+zhaomingwork@users.noreply.github.com>
Date: 星期一, 18 九月 2023 10:20:31 +0800
Subject: [PATCH] Add python websocket api (#960)

---
 funasr/runtime/run_server.sh |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/funasr/runtime/run_server.sh b/funasr/runtime/run_server.sh
old mode 100755
new mode 100644
index 2ab6491..5754447
--- a/funasr/runtime/run_server.sh
+++ b/funasr/runtime/run_server.sh
@@ -12,6 +12,18 @@
 . ../../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  \
+  --download-model-dir ${download_model_dir} \
+  --model-dir ${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  \
   --download-model-dir ${download_model_dir} \
   --model-dir ${model_dir} \
@@ -22,4 +34,4 @@
   --port ${port} \
   --certfile  ${certfile} \
   --keyfile ${keyfile}
-
+fi

--
Gitblit v1.9.1