From 69dcdbcfc0c21627c40fb8f7c435136c11691574 Mon Sep 17 00:00:00 2001 From: 雾聪 <wucong.lyb@alibaba-inc.com> Date: 星期二, 27 六月 2023 17:19:49 +0800 Subject: [PATCH] Merge branch 'main' of https://github.com/alibaba-damo-academy/FunASR into main --- README.md | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8368b3b..26cf940 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,9 @@ Install from pip ```shell -pip install -U funasr +pip3 install -U funasr # For the users in China, you could install with the command: -# pip install -U funasr -i https://mirror.sjtu.edu.cn/pypi/web/simple +# pip3 install -U funasr -i https://mirror.sjtu.edu.cn/pypi/web/simple ``` Or install from source code @@ -96,14 +96,17 @@ ### runtime An example with websocket: + For the server: ```shell +cd funasr/runtime/python/websocket python wss_srv_asr.py --port 10095 ``` + For the client: ```shell -python wss_client_asr.py --host "0.0.0.0" --port 10095 --mode 2pass --chunk_size "5,10,5" -#python wss_client_asr.py --host "0.0.0.0" --port 10095 --mode 2pass --chunk_size "8,8,4" --audio_in "./data/wav.scp" --output_dir "./results" +python wss_client_asr.py --host "127.0.0.1" --port 10095 --mode 2pass --chunk_size "5,10,5" +#python wss_client_asr.py --host "127.0.0.1" --port 10095 --mode 2pass --chunk_size "8,8,4" --audio_in "./data/wav.scp" --output_dir "./results" ``` More examples could be found in [docs](https://alibaba-damo-academy.github.io/FunASR/en/runtime/websocket_python.html#id2) ## Contact -- Gitblit v1.9.1