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 python
游雁2978c59a95c3
diff --git a/funasr/runtime/python/websocket/ws_client.py b/funasr/runtime/python/websocket/ws_client.pyindex bbc49b104..9de31a444 100644--- a/funasr/runtime/python/websocket/ws_client.py+++ b/funasr/runtime/python/websocket/ws_client.py@@ -167,7 +167,7 @@ async def message(id):# print(meg)wav_name = meg.get("wav_name", "demo")print(wav_name)- text = meg["text"][0]+ text = meg["text"]if ibest_writer is not None:ibest_writer["text"][wav_name] = textif meg["mode"] == "online":diff --git a/funasr/runtime/python/websocket/ws_server_offline.py b/funasr/runtime/python/websocket/ws_server_offline.pyindex c415703e4..15578f641 100644--- a/funasr/runtime/python/websocket/ws_server_offline.py+++ b/funasr/runtime/python/websocket/ws_server_offline.py@@ -138,10 +138,10 @@ async def async_asr(websocket, audio_in):rec_result = inference_pipeline_punc(text_in=rec_result['text'],param_dict=websocket.param_dict_punc)# print(rec_result)- message = json.dumps({"mode": "offline", "text": [rec_result["text"]], "wav_name": websocket.wav_name})+ message = json.dumps({"mode": "offline", "text": rec_result["text"], "wav_name": websocket.wav_name})await websocket.send(message)-+diff --git a/funasr/version.txt b/funasr/version.txtindex ef52a6480..f90568270 100644--- a/funasr/version.txt+++ b/funasr/version.txt@@ -1 +1 @@-0.4.6+0.4.7