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
websocket
游雁b831792f035a
diff --git a/funasr/runtime/python/websocket/ASR_server.py b/funasr/runtime/python/websocket/ASR_server.pyindex 79c3a7a96..b7c42d135 100644--- a/funasr/runtime/python/websocket/ASR_server.py+++ b/funasr/runtime/python/websocket/ASR_server.py@@ -153,8 +153,8 @@ def asr(websocket): # ASR推理rec_result = inference_pipeline_asr(audio_in=audio_in)if inference_pipeline_punc is not None and 'text' in rec_result:rec_result = inference_pipeline_punc(text_in=rec_result['text'], param_dict=param_dict_punc)- results = (rec_result["text"] if "text" in rec_result else rec_result)- websocket.send_msg.put(results) # 存入发送队列 直接调用send发送不了+ if "text" in rec_result:+ websocket.send_msg.put(rec_result["text"]) # 存入发送队列 直接调用send发送不了time.sleep(0.1)