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
del m_client.close
雾聪259a1c70282c
diff --git a/funasr/runtime/websocket/funasr-wss-client.cpp b/funasr/runtime/websocket/funasr-wss-client.cppindex 7a93735d6..bf1140b1c 100644--- a/funasr/runtime/websocket/funasr-wss-client.cpp+++ b/funasr/runtime/websocket/funasr-wss-client.cpp@@ -32,9 +32,9 @@*/void WaitABit() {#ifdef WIN32- Sleep(500);+ Sleep(200);#else- usleep(500);+ usleep(200);#endif}std::atomic<int> wav_index(0);@@ -108,16 +108,16 @@ class WebsocketClient {case websocketpp::frame::opcode::text:total_num=total_num+1;LOG(INFO)<< "Thread: " << this_thread::get_id() <<",on_message = " << payload;- LOG(INFO) << "total_num=" << total_num << " wav_index=" <<wav_index;- if((total_num+1)==wav_index)- {- LOG(INFO) << "close client";- websocketpp::lib::error_code ec;- m_client.close(m_hdl, websocketpp::close::status::going_away, "", ec);- if (ec){- LOG(ERROR)<< "Error closing connection " << ec.message();- }- }+ // LOG(INFO) << "total_num=" << total_num << " wav_index=" <<wav_index;+ // if((total_num+1)==wav_index)+ // {+ // LOG(INFO) << "close client";+ // websocketpp::lib::error_code ec;+ // m_client.close(m_hdl, websocketpp::close::status::going_away, "", ec);+ // if (ec){+ // LOG(ERROR)<< "Error closing connection " << ec.message();+ // }+ // }}}