| | |
| | | For the server: |
| | | ```shell |
| | | cd funasr/runtime/python/websocket |
| | | python wss_srv_asr.py --port 10095 |
| | | python funasr_wss_server.py --port 10095 |
| | | ``` |
| | | |
| | | For the client: |
| | | ```shell |
| | | 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" |
| | | python funasr_wss_client.py --host "127.0.0.1" --port 10095 --mode 2pass --chunk_size "5,10,5" |
| | | #python funasr_wss_client.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 |
| | |
| | | `Tips:` asr service and html5 service should be deployed on the same device.
|
| | | ```shell
|
| | | cd ../python/websocket
|
| | | python wss_srv_asr.py --port 10095
|
| | | python funasr_wss_server.py --port 10095
|
| | | ```
|
| | |
|
| | |
|
| | |
| | | #### wss方式
|
| | | ```shell
|
| | | cd ../python/websocket
|
| | | python wss_srv_asr.py --port 10095
|
| | | python funasr_wss_server.py --port 10095
|
| | | ```
|
| | |
|
| | | ### 浏览器打开地址
|