修改打断语音问题 2669/2 2669/head 2670/target/1
authorhcj <1224667075@qq.com>
Sun, 2 Nov 2025 12:47:32 +0000 (20:47 +0800)
committerhcj <1224667075@qq.com>
Sun, 2 Nov 2025 12:47:32 +0000 (20:47 +0800)
code/sdk/zhihui/leiniao/imsl_ln/ln_api_websocket.c

index 82b71a9..b53a320 100644 (file)
@@ -844,10 +844,10 @@ static void ai_binary_message_handler(const uint8_t *raw_data, uint32_t timestam
     // 记录接收数据的时间
     g_last_binary_data_tick = osKernelGetTickCount();
     
-    // if (!is_chat_id_matched()) {
-    //     LN_WS_WARN("Chat ID not matched\n");
-    //     return;
-    // }
+    if (!is_chat_id_matched() && g_audio_playback_active) {
+        LN_WS_WARN("Chat ID not matched\n");
+        return;
+    }
 
     if (!raw_data || data_len == 0) {
         LN_WS_ERROR("Invalid binary data parameters\n");