From ffb05b9ae7eccc47416e9e7fae9dea54d400a245 Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期四, 10 八月 2023 19:05:51 +0800
Subject: [PATCH] Merge branch 'main' of https://github.com/alibaba-damo-academy/FunASR into main

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

diff --git a/funasr/runtime/websocket/funasr-wss-client-2pass.cpp b/funasr/runtime/websocket/funasr-wss-client-2pass.cpp
index 889cfbf..f4764f3 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 @@
       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 @@
           break;
         }
         delete[] iArray;
-        // WaitABit();
       }
     } else {
       int offset = 0;

--
Gitblit v1.9.1