From 83d90745712c68a0f0a2fcde56f6b6ab6bb25d90 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期四, 29 六月 2023 20:30:27 +0800
Subject: [PATCH] docs

---
 funasr/runtime/docs/SDK_tutorial_cn.md |   73 ++++++++++++++++++------------------
 1 files changed, 36 insertions(+), 37 deletions(-)

diff --git a/funasr/runtime/docs/SDK_tutorial_cn.md b/funasr/runtime/docs/SDK_tutorial_cn.md
index f174edb..9f8bd95 100644
--- a/funasr/runtime/docs/SDK_tutorial_cn.md
+++ b/funasr/runtime/docs/SDK_tutorial_cn.md
@@ -7,7 +7,7 @@
 鐜鍑嗗涓庨厤缃紙[鐐瑰嚮姝ゅ](./aliyun_server_tutorial.md)锛�
 ### 鑾峰緱鑴氭湰宸ュ叿骞朵竴閿儴缃�
 
-閫氳繃浠ヤ笅鍛戒护杩愯涓�閿儴缃叉湇鍔★紝鎸夌収鎻愮ず閫愭瀹屾垚FunASR runtime-SDK鏈嶅姟鐨勯儴缃插拰杩愯銆傜洰鍓嶆殏鏃朵粎鏀寔Linux鐜锛屽叾浠栫幆澧冨弬鑰冩枃妗楂橀樁寮�鍙戞寚鍗梋()銆�
+閫氳繃浠ヤ笅鍛戒护杩愯涓�閿儴缃叉湇鍔★紝鎸夌収鎻愮ず閫愭瀹屾垚FunASR runtime-SDK鏈嶅姟鐨勯儴缃插拰杩愯銆傜洰鍓嶆殏鏃朵粎鏀寔Linux鐜锛屽叾浠栫幆澧冨弬鑰冩枃妗楂橀樁寮�鍙戞寚鍗梋(./SDK_advanced_guide_cn.md)銆�
 鍙楅檺浜庣綉缁滐紝funasr-runtime-deploy.sh涓�閿儴缃插伐鍏风殑涓嬭浇鍙兘涓嶉『鍒╋紝閬囧埌鏁扮杩樻湭涓嬭浇杩涘叆涓�閿儴缃插伐鍏风殑鎯呭喌锛岃Ctrl + C 缁堟鍚庡啀娆¤繍琛屼互涓嬪懡浠ゃ��
 
 ```shell
@@ -19,10 +19,10 @@
 ##### 閫夋嫨FunASR Docker闀滃儚
 鎺ㄨ崘閫夋嫨latest浣跨敤鎴戜滑鐨勬渶鏂伴暅鍍忥紝涔熷彲閫夋嫨鍘嗗彶鐗堟湰銆�
 ```text
-[1/10]
+[1/9]
   Please choose the Docker image.
     1) registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-cpu-latest
-    2) registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-cpu-0.0.1
+    2) registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-cpu-0.1.0
   Enter your choice: 1
   You have chosen the Docker image: registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-cpu-latest
 ```
@@ -32,39 +32,44 @@
 浣犲彲浠ラ�夋嫨ModelScope涓殑妯″瀷锛屼篃鍙互閫�<model_name>鑷濉叆ModelScope涓殑妯″瀷鍚嶏紝灏嗕細鍦―ocker杩愯鏃惰嚜鍔ㄤ笅杞姐�傚悓鏃朵篃鍙互閫夋嫨<model_path>濉叆瀹夸富鏈轰腑鐨勬湰鍦版ā鍨嬭矾寰勩��
 
 ```text
-[2/10]
-  Please input [y/n] to confirm whether to automatically download model_id in ModelScope or use a local model.
+[2/9]
+  Please input [Y/n] to confirm whether to automatically download model_id in ModelScope or use a local model.
   [y] With the model in ModelScope, the model will be automatically downloaded to Docker(/workspace/models).
+      If you select both the local model and the model in ModelScope, select [y].
   [n] Use the models on the localhost, the directory where the model is located will be mapped to Docker.
   Setting confirmation[Y/n]: 
-  You have chosen to use the model in ModelScope, please set the model ID in the next steps, and the model will be automatically downloaded during the run.
+  You have chosen to use the model in ModelScope, please set the model ID in the next steps, and the model will be automatically downloaded in (/workspace/models) during the run.
 
-  [2.1/10]
+  Please enter the local path to download models, the corresponding path in Docker is /workspace/models.
+  Setting the local path to download models, default(/root/models): 
+  The local path(/root/models) set will store models during the run.
+
+  [2.1/9]
     Please select ASR model_id in ModelScope from the list below.
     1) damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-onnx
     2) model_name
     3) model_path
   Enter your choice: 1
     The model ID is damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-onnx
-    The model dir in Docker is /workspace/models/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-onnx
+    The model dir in Docker is /workspace/models/damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-onnx
 
-  [2.2/10]
+  [2.2/9]
     Please select VAD model_id in ModelScope from the list below.
     1) damo/speech_fsmn_vad_zh-cn-16k-common-onnx
     2) model_name
     3) model_path
   Enter your choice: 1
     The model ID is damo/speech_fsmn_vad_zh-cn-16k-common-onnx
-    The model dir in Docker is /workspace/models/speech_fsmn_vad_zh-cn-16k-common-onnx
+    The model dir in Docker is /workspace/models/damo/speech_fsmn_vad_zh-cn-16k-common-onnx
 
-  [2.3/10]
+  [2.3/9]
     Please select PUNC model_id in ModelScope from the list below.
     1) damo/punc_ct-transformer_zh-cn-common-vocab272727-onnx
     2) model_name
     3) model_path
   Enter your choice: 1
     The model ID is damo/punc_ct-transformer_zh-cn-common-vocab272727-onnx
-    The model dir in Docker is /workspace/models/punc_ct-transformer_zh-cn-common-vocab272727-onnx
+    The model dir in Docker is /workspace/models/damo/punc_ct-transformer_zh-cn-common-vocab272727-onnx
 ```
 
 ##### 杈撳叆瀹夸富鏈轰腑FunASR鏈嶅姟鍙墽琛岀▼搴忚矾寰�
@@ -72,40 +77,32 @@
 杈撳叆FunASR鏈嶅姟鍙墽琛岀▼搴忕殑瀹夸富鏈鸿矾寰勶紝Docker杩愯鏃跺皢鑷姩鎸傝浇鍒癉ocker涓繍琛屻�傞粯璁や笉杈撳叆鐨勬儏鍐典笅灏嗘寚瀹欴ocker涓粯璁ょ殑/workspace/FunASR/funasr/runtime/websocket/build/bin/funasr-wss-server銆�
 
 ```text
-[3/10]
+[3/9]
   Please enter the path to the excutor of the FunASR service on the localhost.
   If not set, the default /workspace/FunASR/funasr/runtime/websocket/build/bin/funasr-wss-server in Docker is used.
-  Setting the path to the excutor of the FunASR service on the localhost:
+  Setting the path to the excutor of the FunASR service on the localhost: 
   Corresponding, the path of FunASR in Docker is /workspace/FunASR/funasr/runtime/websocket/build/bin/funasr-wss-server
 ```
 
 ##### 璁剧疆瀹夸富鏈烘彁渚涚粰FunASR鐨勭鍙�
 璁剧疆鎻愪緵缁橠ocker鐨勫涓绘満绔彛锛岄粯璁や负10095銆傝淇濊瘉姝ょ鍙e彲鐢ㄣ��
 ```text
-[4/10]
+[4/9]
   Please input the opened port in the host used for FunASR server.
   Default: 10095
-  Setting the opened host port [1-65535]:
+  Setting the opened host port [1-65535]: 
   The port of the host is 10095
-```
-
-##### 璁剧疆Docker涓彁渚涚粰FunASR鐨勭鍙�
-璁剧疆Docker涓璅unASR鏈嶅姟浣跨敤鐨勭鍙o紝榛樿涓�10095锛屾绔彛灏嗕簬step1.4涓缃殑瀹夸富鏈虹鍙h繘琛屾槧灏勩��
-```text
-5/10]
-  Please input port for docker mapped.
-  Default: 10095, the opened port of current host is 10095
-  Setting the port in Docker for FunASR server [1-65535]:
   The port in Docker for FunASR server is 10095
 ```
+
 
 ##### 璁剧疆FunASR鏈嶅姟鐨勬帹鐞嗙嚎绋嬫暟
 璁剧疆FunASR鏈嶅姟鐨勬帹鐞嗙嚎绋嬫暟锛岄粯璁や负瀹夸富鏈烘牳鏁帮紝鍚屾椂鑷姩璁剧疆鏈嶅姟鐨処O绾跨▼鏁帮紝涓烘帹鐞嗙嚎绋嬫暟鐨勫洓鍒嗕箣涓�銆�
 ```text
-[6/10]
+[5/9]
   Please input thread number for FunASR decoder.
   Default: 1
-  Setting the number of decoder thread:
+  Setting the number of decoder thread: 
 
   The number of decoder threads is 1
   The number of IO threads is 1
@@ -116,17 +113,19 @@
 灞曠ず鍓嶉潰6姝ヨ缃殑鍙傛暟锛岀‘璁ゅ垯灏嗘墍鏈夊弬鏁板瓨鍌ㄥ埌/var/funasr/config锛屽苟寮�濮嬪惎鍔―ocker锛屽惁鍒欐彁绀虹敤鎴疯繘琛岄噸鏂拌缃��
 
 ```text
-[7/10]
+
+[6/9]
   Show parameters of FunASR server setting and confirm to run ...
 
   The current Docker image is                                    : registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-cpu-latest
+  The model is downloaded or stored to this directory in local   : /root/models
   The model will be automatically downloaded to the directory    : /workspace/models
   The ASR model_id used                                          : damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-onnx
-  The ASR model directory corresponds to the directory in Docker : /workspace/models/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-onnx
+  The ASR model directory corresponds to the directory in Docker : /workspace/models/damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-onnx
   The VAD model_id used                                          : damo/speech_fsmn_vad_zh-cn-16k-common-onnx
-  The VAD model directory corresponds to the directory in Docker : /workspace/models/speech_fsmn_vad_zh-cn-16k-common-onnx
+  The VAD model directory corresponds to the directory in Docker : /workspace/models/damo/speech_fsmn_vad_zh-cn-16k-common-onnx
   The PUNC model_id used                                         : damo/punc_ct-transformer_zh-cn-common-vocab272727-onnx
-  The PUNC model directory corresponds to the directory in Docker: /workspace/models/punc_ct-transformer_zh-cn-common-vocab272727-onnx
+  The PUNC model directory corresponds to the directory in Docker: /workspace/models/damo/punc_ct-transformer_zh-cn-common-vocab272727-onnx
 
   The path in the docker of the FunASR service executor          : /workspace/FunASR/funasr/runtime/websocket/build/bin/funasr-wss-server
   Set the host port used for use by the FunASR service           : 10095
@@ -134,10 +133,10 @@
   Set the number of threads used for decoding the FunASR service : 1
   Set the number of threads used for IO the FunASR service       : 1
 
-  Please input [y/n] to confirm the parameters.
+  Please input [Y/n] to confirm the parameters.
   [y] Verify that these parameters are correct and that the service will run.
   [n] The parameters set are incorrect, it will be rolled out, please rerun.
-  read confirmation[y/n]: 
+  read confirmation[Y/n]: 
 
   Will run FunASR server later ...
   Parameters are stored in the file /var/funasr/config
@@ -148,7 +147,7 @@
 妫�鏌ュ綋鍓嶅涓绘満鏄惁瀹夎浜咲ocker鏈嶅姟锛岃嫢鏈畨瑁咃紝鍒欏畨瑁匘ocker骞跺惎鍔ㄣ��
 
 ```text
-[8/10]
+[7/9]
   Start install docker for ubuntu 
   Get docker installer: curl -fsSL https://test.docker.com -o test-docker.sh
   Get docker run: sudo sh test-docker.sh
@@ -176,7 +175,7 @@
 涓嬭浇骞舵洿鏂皊tep1.1涓�夋嫨鐨凢unASR Docker闀滃儚銆�
 
 ```text
-[9/10]
+[8/9]
   Pull docker image(registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-cpu-latest)...
 funasr-runtime-cpu-0.0.1: Pulling from funasr_repo/funasr
 7608715873ec: Pull complete 
@@ -191,7 +190,7 @@
 鍚姩FunASR Docker锛岀瓑寰卻tep1.2閫夋嫨鐨勬ā鍨嬩笅杞藉畬鎴愬苟鍚姩FunASR鏈嶅姟銆�
 
 ```text
-[10/10]
+[9/9]
   Construct command and run docker ...
 943d8f02b4e5011b71953a0f6c1c1b9bc5aff63e5a96e7406c83e80943b23474
 
@@ -231,7 +230,7 @@
 sudo bash scripts/funasr-runtime-deploy.sh update model <model ID in ModelScope>
 
 e.g
-sudo bash scripts/funasr-runtime-deploy.sh update model damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-onnx
+sudo bash scripts/funasr-runtime-deploy.sh update model damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch
 ```
 
 ### 娴嬭瘯涓庝娇鐢ㄧ绾挎枃浠惰浆鍐欐湇鍔�

--
Gitblit v1.9.1