dudulu
2024-01-31 6cdbcf4b0aaceedb5a493d53a5686fb42a36db01
Update funasr_wss_server.py (#1322)

解决报

```python
return await cast(
File "funasr_wss_server.py", line 188, in ws_serve
int(websocket.status_dict_asr_online["chunk_size"][1]) * 60 / websocket.chunk_interval)
ValueError: invalid literal for int() with base 10: ','
^CTraceback (most recent call last):
File "funasr_wss_server.py", line 302, in <module>
asyncio.get_event_loop().run_forever()
```
1个文件已修改
3 ■■■■ 已修改文件
runtime/python/websocket/funasr_wss_server.py 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
runtime/python/websocket/funasr_wss_server.py
@@ -179,7 +179,8 @@
                if "wav_name" in messagejson:
                    websocket.wav_name = messagejson.get("wav_name")
                if "chunk_size" in messagejson:
                    websocket.status_dict_asr_online["chunk_size"] = messagejson["chunk_size"]
                    chunk_size = messagejson["chunk_size"].split(',')
                    websocket.status_dict_asr_online["chunk_size"] = [int(x) for x in chunk_size]
                if "encoder_chunk_look_back" in messagejson:
                    websocket.status_dict_asr_online["encoder_chunk_look_back"] = messagejson["encoder_chunk_look_back"]
                if "decoder_chunk_look_back" in messagejson: