lyblsgo 2 лет назад
Родитель
Сommit
71b403ee9d

+ 1 - 2
funasr/runtime/docs/SDK_advanced_guide_online_zh.md

@@ -31,8 +31,7 @@ nohup bash run_server_2pass.sh \
   --model-dir damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-onnx  \
   --online-model-dir damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-online-onnx  \
   --punc-dir damo/punc_ct-transformer_zh-cn-common-vad_realtime-vocab272727-onnx \
-  --itn-dir thuduj12/fst_itn_zh \
-  --hotwordsfile ../../hotwords.txt > log.out 2>&1 &
+  --itn-dir thuduj12/fst_itn_zh  > log.out 2>&1 &
 
 # 如果您想关闭ssl,增加参数:--certfile 0
 # 如果您想使用时间戳或者热词模型进行部署,请设置--model-dir为对应模型:

+ 3 - 3
funasr/runtime/run_server.sh

@@ -9,7 +9,7 @@ io_thread_num=8
 port=10095
 certfile="../../../ssl_key/server.crt"
 keyfile="../../../ssl_key/server.key"
-hotwordsfile="../../hotwords.txt"
+hotword="../../hotwords.txt"
 
 . ../../egs/aishell/transformer/utils/parse_options.sh || exit 1;
 
@@ -26,7 +26,7 @@ if [ -z "$certfile" ] || [ "$certfile" -eq 0 ]; then
   --port ${port} \
   --certfile  "" \
   --keyfile "" \
-  --hotwordsfile ${hotwordsfile}
+  --hotword ${hotword}
 else
 ./funasr-wss-server  \
   --download-model-dir ${download_model_dir} \
@@ -39,5 +39,5 @@ else
   --port ${port} \
   --certfile  ${certfile} \
   --keyfile ${keyfile} \
-  --hotwordsfile ${hotwordsfile}
+  --hotword ${hotword}
 fi

+ 3 - 3
funasr/runtime/run_server_2pass.sh

@@ -10,7 +10,7 @@ io_thread_num=8
 port=10095
 certfile="../../../ssl_key/server.crt"
 keyfile="../../../ssl_key/server.key"
-hotwordsfile="../../hotwords.txt"
+hotword="../../hotwords.txt"
 
 . ../../egs/aishell/transformer/utils/parse_options.sh || exit 1;
 
@@ -28,7 +28,7 @@ if [ -z "$certfile" ] || [ "$certfile" -eq 0 ]; then
   --port ${port} \
   --certfile  "" \
   --keyfile "" \
-  --hotwordsfile ${hotwordsfile}
+  --hotword ${hotword}
 else
 ./funasr-wss-server-2pass  \
   --download-model-dir ${download_model_dir} \
@@ -42,5 +42,5 @@ else
   --port ${port} \
   --certfile  ${certfile} \
   --keyfile ${keyfile} \
-  --hotwordsfile ${hotwordsfile}
+  --hotword ${hotword}
 fi