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
update funasr-wss-client-2pass
雾聪b3e6a6c65bcc
diff --git a/funasr/runtime/websocket/funasr-wss-client-2pass.cpp b/funasr/runtime/websocket/funasr-wss-client-2pass.cppindex 889cfbf40..f4764f35e 100644--- a/funasr/runtime/websocket/funasr-wss-client-2pass.cpp+++ b/funasr/runtime/websocket/funasr-wss-client-2pass.cpp@@ -36,9 +36,9 @@*/void WaitABit() {#ifdef WIN32- Sleep(500);+ Sleep(300);#else- usleep(500);+ usleep(300);#endif}std::atomic<int> wav_index(0);@@ -113,7 +113,7 @@ class WebsocketClient {case websocketpp::frame::opcode::text:nlohmann::json jsonresult = nlohmann::json::parse(payload);LOG(INFO) << "Thread: " << this_thread::get_id()- << ",on_message = " << payload << "jsonresult" << jsonresult;+ << ",on_message = " << payload;if (jsonresult["is_final"] == true) {websocketpp::lib::error_code ec;@@ -280,7 +280,6 @@ class WebsocketClient {break;}delete[] iArray;- // WaitABit();}} else {int offset = 0;