From 453b4f36379f0b159c40b335b0512448c7d93718 Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期三, 09 八月 2023 10:59:01 +0800
Subject: [PATCH] update fsmn-vad

---
 funasr/runtime/websocket/funasr-wss-client-2pass.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/funasr/runtime/websocket/funasr-wss-client-2pass.cpp b/funasr/runtime/websocket/funasr-wss-client-2pass.cpp
index 91500c3..48e9079 100644
--- a/funasr/runtime/websocket/funasr-wss-client-2pass.cpp
+++ b/funasr/runtime/websocket/funasr-wss-client-2pass.cpp
@@ -34,9 +34,9 @@
  */
 void WaitABit() {
     #ifdef WIN32
-        Sleep(1000);
+        Sleep(300);
     #else
-        sleep(1);
+        usleep(300);
     #endif
 }
 std::atomic<int> wav_index(0);
@@ -313,7 +313,7 @@
         jsonresult["is_speaking"] = false;
         m_client.send(m_hdl, jsonresult.dump(), websocketpp::frame::opcode::text,
                       ec);
-        // WaitABit();
+        WaitABit();
     }
     websocketpp::client<T> m_client;
 

--
Gitblit v1.9.1