Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.
Python asraudiochineseemotion-recognitionfunasrmcp-servermultilingual-asropenai-compatible-apiparaformerpunctuationpytorchreal-time-asrspeaker-diarizationspeech-recognitionspeech-to-textstreaming-asrtranscriptionvllmvoice-activity-detectionwhisper-alternative
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. (#2772)
AllenDou36656aa8f7f3
diff --git a/runtime/python/websocket/funasr_wss_client.py b/runtime/python/websocket/funasr_wss_client.pyindex ed0cfc98f..b56f64fae 100644--- a/runtime/python/websocket/funasr_wss_client.py+++ b/runtime/python/websocket/funasr_wss_client.py@@ -242,6 +242,8 @@ async def record_from_scp(chunk_begin, chunk_size):while not offline_msg_done:await asyncio.sleep(1)+ await asyncio.sleep(10)+await websocket.close()