From 791855c4ca398507b8b313c2116948e121d7adfe Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Thu, 14 Aug 2025 17:57:03 +0800 Subject: [PATCH] =?utf8?q?=E8=BF=98=E5=8E=9F=E5=85=B3=E4=BA=8Etts=E9=87=8D?= =?utf8?q?=E8=BF=9E=E7=9A=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/aivoice/src/AiVoicePresenter.cpp | 4 ++-- .../drivers/peripheral/slip/cat1Service/cat1_ai_server.cpp | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoicePresenter.cpp b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoicePresenter.cpp index d75f6d6f0..adb6e7928 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoicePresenter.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoicePresenter.cpp @@ -342,7 +342,7 @@ namespace OHOS break; case AIVOICE_RETURN_RESULT_TEXT_VIEWID: - set_need_tts_reconnect(0); // 停止tts重连 + // set_need_tts_reconnect(0); // 停止tts重连 AiVoiceModel::GetInstance().ClearQuestionAndAiAnswerStr(); // 清空上次用户问题和Ai回答字符串 AiVoiceModel::GetInstance().SetIsClickable(false); AiVoiceModel::GetInstance().SetIsLimitDisplayed(false); @@ -362,7 +362,7 @@ namespace OHOS AiVoiceModel::GetInstance().start_ai_isready_timer(); break; case AIVOICE_RETURN_RESULT_TEXT_VIEWID: - set_need_tts_reconnect(1); // 开始tts重连 + // set_need_tts_reconnect(1); // 开始tts重连 break; case AIVOICE_LISTENING_VIEWID: // set_stop_send_ai_flag(0); // 开始发送AI数据 diff --git a/code/sdk/drivers/peripheral/slip/cat1Service/cat1_ai_server.cpp b/code/sdk/drivers/peripheral/slip/cat1Service/cat1_ai_server.cpp index 5066d2c60..2d8126554 100644 --- a/code/sdk/drivers/peripheral/slip/cat1Service/cat1_ai_server.cpp +++ b/code/sdk/drivers/peripheral/slip/cat1Service/cat1_ai_server.cpp @@ -2126,11 +2126,7 @@ TTS_SATRT: if (type == WS_CLOSE || len == -1 || tts_reconnect == 1) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "TTS WebSocket connection closed"); - if(need_tts_reconnect==1) - { - tts_reconnect = 1; - } - // break; + break; } //发送数据到AI if (len > 0) { -- 2.17.1