Skip to content

Commit

Permalink
update run_server.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lyblsgo committed Feb 2, 2024
1 parent b744fe7 commit 6610421
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions runtime/run_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ lm_dir="damo/speech_ngram_lm_zh-cn-ai-wesp-fst"
port=10095
certfile="$(pwd)/ssl_key/server.crt"
keyfile="$(pwd)/ssl_key/server.key"
hotword="$(pwd)/hotwords.txt"
hotword="$(pwd)/websocket/hotwords.txt"
# set decoder_thread_num
decoder_thread_num=$(cat /proc/cpuinfo | grep "processor"|wc -l) || { echo "Get cpuinfo failed. Set decoder_thread_num = 32"; decoder_thread_num=32; }
multiple_io=16
Expand Down Expand Up @@ -38,5 +38,5 @@ $cmd_path/${cmd} \
--port ${port} \
--certfile "${certfile}" \
--keyfile "${keyfile}" \
--hotword "${hotword}"
--hotword "${hotword}" &

4 changes: 2 additions & 2 deletions runtime/run_server_2pass.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ lm_dir="damo/speech_ngram_lm_zh-cn-ai-wesp-fst"
port=10095
certfile="$(pwd)/ssl_key/server.crt"
keyfile="$(pwd)/ssl_key/server.key"
hotword="$(pwd)/hotwords.txt"
hotword="$(pwd)/websocket/hotwords.txt"
# set decoder_thread_num
decoder_thread_num=$(cat /proc/cpuinfo | grep "processor"|wc -l) || { echo "Get cpuinfo failed. Set decoder_thread_num = 32"; decoder_thread_num=32; }
multiple_io=16
Expand Down Expand Up @@ -40,5 +40,5 @@ $cmd_path/${cmd} \
--port ${port} \
--certfile "${certfile}" \
--keyfile "${keyfile}" \
--hotword "${hotword}"
--hotword "${hotword}" &

0 comments on commit 6610421

Please sign in to comment.