modelscope / modelscope/FunASR
funasr_wss_server.py 当python funasr_wss_client.py使用--audio_in方式时,没有正确返回asr,且造成客户端卡死
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 20.4k
- Forks
- 2k
- Avg merge
- 4h 55m
- Merged PRs (30d)
- 169
Description
🐛 Bug
runtime/python/websocket/funasr_wss_server.py,这个代码好像有bug,funasr_wss_client.py 通过 --audio_in 上传文件这个用法,如果是 -mode offline 直接卡死没有输出;如果是 -mode online或2pass,音频的最后几个字一直识别不出来然后卡死
To Reproduce
- python funasr_wss_server.py --port 10095 启动服务器
- python funasr_wss_client.py --host 127.0.0.1 --port 10095 --mode offline --audio_in xxx
Expected behavior
funasr_wss_client.py --audio_in使用任何mode都应该正确返回完成的asr识别内容,且识别完后应该自动关闭
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with runtime/python/websocket/funasr_wss_server.py and funasr_wss_client.py, then reproduce the --audio_in case using the commands in the issue for offline, online, and 2pass modes. Trace how the server handles the final audio and completion signal; done means every mode returns the complete ASR result and the client closes automatically.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- audio-video-rtc, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100