mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
| .. | ||
| static | ||
| demo.gif | ||
| h5Server.py | ||
| readme_cn.md | ||
| readme.md | ||
| requirement.txt | ||
| ssl_key | ||
Html5 server for asr service
Requirement
python
pip install flask
# pip install gevent (Optional)
# pip install pyOpenSSL (Optional)
javascript (Optional)
Recorder
demo
Steps
Html5 demo
usage: h5Server.py [-h] [--host HOST] [--port PORT] [--certfile CERTFILE] [--keyfile KEYFILE]
e.g.
python h5Server.py --host 0.0.0.0 --port 1337
asr service
Tips: asr service and html5 service should be deployed on the same device.
cd ../python/websocket
python ws_server_online.py --port 1095
open browser to access html5 demo
https://127.0.0.1:1337/static/index.html
# 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
Acknowledge
- This project is maintained by FunASR community.
- We acknowledge AiHealthx for contributing the html5 demo.
