雾聪
2023-08-10 b3e6a6c65bcc351d026c02e79c5f6a45a8c8c7c5
update funasr-wss-client-2pass
1个文件已修改
7 ■■■■■ 已修改文件
funasr/runtime/websocket/funasr-wss-client-2pass.cpp 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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;