From 2bd82419482b9a074c8c464d5b65f997632964d3 Mon Sep 17 00:00:00 2001 From: 游雁 <zhifu.gzf@alibaba-inc.com> Date: 星期一, 18 九月 2023 10:44:25 +0800 Subject: [PATCH] Merge branch 'main' of github.com:alibaba-damo-academy/FunASR add --- funasr/runtime/python/http/README.md | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/funasr/runtime/python/http/README.md b/funasr/runtime/python/http/README.md index 5b3fbb3..d9e01f5 100644 --- a/funasr/runtime/python/http/README.md +++ b/funasr/runtime/python/http/README.md @@ -21,9 +21,11 @@ --host [host ip] \ --port [server port] \ --asr_model [asr model_name] \ +--vad_model [vad model_name] \ --punc_model [punc model_name] \ --ngpu [0 or 1] \ --ncpu [1 or 4] \ +--hotword_path [path of hot word txt] \ --certfile [path of certfile for ssl] \ --keyfile [path of keyfile for ssl] \ --temp_dir [upload file temp dir] @@ -45,3 +47,22 @@ --add_pun [add pun to result] \ --audio_path [use audio path] ``` + + +## 鏀寔澶氳繘绋� + +鏂规硶鏄惎鍔ㄥ涓猔server.py`锛岀劧鍚庨�氳繃Nginx鐨勮礋杞藉潎琛″垎鍙戣姹傦紝杈惧埌鏀寔澶氱敤鎴峰悓鏃惰繛鏁堟灉锛屽鐞嗘柟寮忓涓嬶紝榛樿鎮ㄥ凡缁忓畨瑁呬簡Nginx锛屾病瀹夎鐨勮鍙傝�僛瀹樻柟瀹夎鏁欑▼](https://nginx.org/en/linux_packages.html#Ubuntu)銆� + +閰嶇疆Nginx銆� +```shell +sudo cp -f asr_nginx.conf /etc/nginx/nginx.conf +sudo service nginx reload +``` + +鐒跺悗浣跨敤鑴氭湰鍚姩澶氫釜鏈嶅姟锛屾瘡涓湇鍔$殑绔彛鍙蜂笉涓�鏍枫�� +```shell +sudo chmod +x start_server.sh +./start_server.sh +``` + +**璇存槑锛�** 榛樿鏄�3涓繘绋嬶紝濡傛灉闇�瑕佷慨鏀癸紝棣栧厛淇敼`start_server.sh`鐨勬渶鍚庨偅閮ㄥ垎锛屽彲浠ユ坊鍔犲惎鍔ㄦ暟閲忋�傜劧鍚庝慨鏀筦asr_nginx.conf`閰嶇疆鏂囦欢鐨刞upstream backend`閮ㄥ垎锛屽鍔犳柊鍚姩鐨勬湇鍔★紝鍙互浣垮叾浠栨湇鍔″櫒鐨勬湇鍔°�� -- Gitblit v1.9.1