Skip to content

Commit a69976d

Browse files
author
zixiao
committed
when mode is 2pass and test audio is vad_example.wav, we should give more time to websocket connection to recv message, or funasr_wss_client.py's websocket.recv() will cause exception occasionally because connection has been closed.
1 parent b651224 commit a69976d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runtime/python/websocket/funasr_wss_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ async def record_from_scp(chunk_begin, chunk_size):
242242
while not offline_msg_done:
243243
await asyncio.sleep(1)
244244

245+
await asyncio.sleep(10)
246+
245247
await websocket.close()
246248

247249

0 commit comments

Comments
 (0)