From c542eacb0aadcbc49c63db40429fca4e08f807a4 Mon Sep 17 00:00:00 2001 From: 游雁 <zhifu.gzf@alibaba-inc.com> Date: 星期五, 21 七月 2023 10:27:35 +0800 Subject: [PATCH] Merge branch 'main' of github.com:alibaba-damo-academy/FunASR add --- funasr/runtime/html5/readme.md | 30 +++++++++++++++++++++++++----- 1 files changed, 25 insertions(+), 5 deletions(-) diff --git a/funasr/runtime/html5/readme.md b/funasr/runtime/html5/readme.md index a123216..e46ab92 100644 --- a/funasr/runtime/html5/readme.md +++ b/funasr/runtime/html5/readme.md @@ -1,7 +1,16 @@ +([绠�浣撲腑鏂嘳(./readme_zh.md)|English) + # Html5 server for asr service ## Requirement -### python +#### Install the modelscope and funasr +```shell +pip install -U modelscope funasr +# For the users in China, you could install with the command: +# pip install -U modelscope funasr -i https://mirror.sjtu.edu.cn/pypi/web/simple +git clone https://github.com/alibaba/FunASR.git && cd FunASR +``` +#### Install the requirements for server ```shell pip install flask # pip install gevent (Optional) @@ -25,15 +34,16 @@ ``` `e.g.` ```shell +cd funasr/runtime/html5 python h5Server.py --host 0.0.0.0 --port 1337 ``` ### asr service -[detail for asr]((../python/websocket)) +[detail for asr](https://github.com/alibaba-damo-academy/FunASR/tree/main/funasr/runtime/python/websocket) `Tips:` asr service and html5 service should be deployed on the same device. ```shell cd ../python/websocket -python ws_server_online.py --port 1095 +python funasr_wss_server.py --port 10095 ``` @@ -43,8 +53,18 @@ # https://30.220.136.139:1337/static/index.html ``` -### modify asr address in html according to your environment -asr address in index.html must be wss +### open browser to open html5 file directly without h5Server +you can run html5 client by just clicking the index.html file directly in your computer. +1) lauch asr service without ssl, it must be in ws mode as ssl protocol will prohibit such access. +2) copy whole directory /funasr/runtime/html5/static to your computer +3) open /funasr/runtime/html5/static/index.html by browser +4) enter asr service ws address and connect + + +```shell + +``` + ## Acknowledge -- Gitblit v1.9.1