mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
Update run_server.sh
This commit is contained in:
parent
2759bafe9c
commit
7a02f6d5c5
@ -12,6 +12,18 @@ keyfile="../../../ssl_key/server.key"
|
||||
. ../../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 @@ cd /workspace/FunASR/funasr/runtime/websocket/build/bin
|
||||
--port ${port} \
|
||||
--certfile ${certfile} \
|
||||
--keyfile ${keyfile}
|
||||
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user