Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

update funasr-wss-client websocket-server

雾聪a4bf14f91ba1
diff --git a/funasr/runtime/websocket/funasr-wss-client.cpp b/funasr/runtime/websocket/funasr-wss-client.cpp
index 1f4a27466..cdc5c44a8 100644
--- a/funasr/runtime/websocket/funasr-wss-client.cpp
+++ b/funasr/runtime/websocket/funasr-wss-client.cpp
@@ -306,7 +306,7 @@ class WebsocketClient {
offset += send_block;
}
- LOG(INFO) << "sended data len=" << len;
+ LOG(INFO)<< "Thread: " << this_thread::get_id() << ", sended data len=" << len;
// The most likely error that we will get is that the connection is
// not in the right state. Usually this means we tried to send a
// message to a connection that was closed or in the process of
diff --git a/funasr/runtime/websocket/websocket-server.cpp b/funasr/runtime/websocket/websocket-server.cpp
index 865015ab9..f9febbd35 100644
--- a/funasr/runtime/websocket/websocket-server.cpp
+++ b/funasr/runtime/websocket/websocket-server.cpp
@@ -100,6 +100,7 @@ void WebSocketServer::do_decoder(const std::vector<char>& buffer,
LOG(INFO) << "buffer.size=" << buffer.size() << ",result json=" << jsonresult.dump();
}else{
+ LOG(INFO) << "Sent empty meg";
websocketpp::lib::error_code ec;
nlohmann::json jsonresult; // result json
jsonresult["text"] = ""; // put result in 'text'