From e0fa63765bfb4a36bde7047c2a6066ca5a80e90f Mon Sep 17 00:00:00 2001 From: Yabin Li <wucong.lyb@alibaba-inc.com> Date: 星期一, 21 八月 2023 10:37:42 +0800 Subject: [PATCH] Dev hw (#878) --- funasr/runtime/websocket/readme.md | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/funasr/runtime/websocket/readme.md b/funasr/runtime/websocket/readme.md index eabb1a9..e43500f 100644 --- a/funasr/runtime/websocket/readme.md +++ b/funasr/runtime/websocket/readme.md @@ -1,4 +1,4 @@ -([绠�浣撲腑鏂嘳(https://github.com/alibaba-damo-academy/FunASR/blob/main/funasr/runtime/websocket/readme_zh.md)|English) +([绠�浣撲腑鏂嘳(./readme_zh.md)|English) # Service with websocket-cpp @@ -38,13 +38,13 @@ wget https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/sample/funasr_samples.tar.gz ``` -We take the Python language client as an example to explain. It supports various audio formats (.wav, .pcm, .mp3, etc.), video input (.mp4, etc.), and multi-file list wav.scp input. For other versions of clients, please refer to the document ([click here](#Detailed Usage of Clients)). For customized service deployment, please refer to [How to Customize Service Deployment](#How to Customize Service Deployment). +We take the Python language client as an example to explain. It supports various audio formats (.wav, .pcm, .mp3, etc.), video input (.mp4, etc.), and multi-file list wav.scp input. For other versions of clients, please refer to the ([docs](#client-usage)). ```shell python3 wss_client_asr.py --host "127.0.0.1" --port 10095 --mode offline --audio_in "../audio/asr_example.wav" ``` -## Building for Linux/Unix +## Detailed Steps ### Dependencies Download and Install @@ -116,6 +116,18 @@ --punc-dir ./export/damo/punc_ct-transformer_zh-cn-common-vocab272727-onnx ``` +##### Start the 2pass Service +```shell +./funasr-wss-server-2pass \ + --download-model-dir /workspace/models \ + --model-dir ./exportdamo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-onnx \ + --vad-dir ./exportdamo/speech_fsmn_vad_zh-cn-16k-common-onnx \ + --punc-dir ./export/damo/punc_ct-transformer_zh-cn-common-vocab272727-onnx \ + --online-model-dir ./exportdamo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-online \ + --quantize false +``` + + ### Client Usage @@ -157,7 +169,6 @@ ``` API-reference: - ```text --server-ip: The IP address of the machine where FunASR runtime-SDK service is deployed. The default value is the IP address of the local machine (127.0.0.1). If the client and service are not on the same server, it needs to be changed to the IP address of the deployment machine. --port: The port number of the deployed service is 10095. -- Gitblit v1.9.1