|
|
пре 2 година | |
|---|---|---|
| .. | ||
| static | пре 2 година | |
| demo.gif | пре 2 година | |
| h5Server.py | пре 2 година | |
| readme.md | пре 2 година | |
| readme_cn.md | пре 2 година | |
| ssl_key | пре 2 година | |
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
pip install flask
# pip install gevent (Optional)
# pip install pyOpenSSL (Optional)
Recorder
usage: h5Server.py [-h] [--host HOST] [--port PORT] [--certfile CERTFILE] [--keyfile KEYFILE]
e.g.
cd funasr/runtime/html5
python h5Server.py --host 0.0.0.0 --port 1337
Tips: asr service and html5 service should be deployed on the same device.
cd ../python/websocket
python wss_srv_asr.py --port 10095
https://127.0.0.1:1337/static/index.html
# https://30.220.136.139:1337/static/index.html
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