雾聪
2023-08-09 4452c1a75784205c6c5ebe49a817f1ca5aa01712
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;