From: luozheng <1732036298@qq.com> Date: Thu, 14 Aug 2025 09:57:03 +0000 (+0800) Subject: 还原关于tts重连的修改 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F2080%2F1;p=mirrors%2FFD230.git 还原关于tts重连的修改 --- 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) {