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
fix websocketsrv.cpp for new apis
lyblsgo9eaa9de61afd
diff --git a/funasr/runtime/websocket/websocketsrv.cpp b/funasr/runtime/websocket/websocketsrv.cppindex 9e566677b..1a6adbff2 100644--- a/funasr/runtime/websocket/websocketsrv.cpp+++ b/funasr/runtime/websocket/websocketsrv.cpp@@ -25,8 +25,8 @@ void WebSocketServer::do_decoder(const std::vector<char>& buffer,if (!buffer.empty()) {// fout.write(buffer.data(), buffer.size());// feed data to asr engine- FUNASR_RESULT Result = FunOfflineRecogPCMBuffer(- asr_hanlde, buffer.data(), buffer.size(), 16000, RASR_NONE, NULL);+ FUNASR_RESULT Result = FunOfflineInferBuffer(+ asr_hanlde, buffer.data(), buffer.size(), RASR_NONE, NULL, 16000);std::string asr_result =((FUNASR_RECOG_RESULT*)Result)->msg; // get decode result