From 71b403ee9d1c6c4d56e73fe67aa83c7d15b88d46 Mon Sep 17 00:00:00 2001 From: lyblsgo Date: Tue, 24 Oct 2023 17:24:50 +0800 Subject: [PATCH] update docs --- funasr/runtime/docs/SDK_advanced_guide_online_zh.md | 3 +-- funasr/runtime/run_server.sh | 6 +++--- funasr/runtime/run_server_2pass.sh | 6 +++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/funasr/runtime/docs/SDK_advanced_guide_online_zh.md b/funasr/runtime/docs/SDK_advanced_guide_online_zh.md index 902ae7a6c..4eb584e7c 100644 --- a/funasr/runtime/docs/SDK_advanced_guide_online_zh.md +++ b/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为对应模型: diff --git a/funasr/runtime/run_server.sh b/funasr/runtime/run_server.sh index f75f15946..65ad4a5dd 100644 --- a/funasr/runtime/run_server.sh +++ b/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 diff --git a/funasr/runtime/run_server_2pass.sh b/funasr/runtime/run_server_2pass.sh index 941064cd3..e9d9f6166 100644 --- a/funasr/runtime/run_server_2pass.sh +++ b/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