From e0533d7fe1b1b90bdacc6d432b924fd5c1e34570 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Mon, 4 Aug 2025 15:32:58 +0800 Subject: [PATCH] =?utf8?q?=E8=A7=A3=E5=86=B3AI=E5=A4=A7=E6=A8=A1=E5=9E=8B?= =?utf8?q?=E6=A0=87=E8=AF=86=E9=94=99=E8=AF=AF=E6=98=BE=E7=A4=BA=E5=88=B0?= =?utf8?q?=E9=97=AE=E9=A2=98=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp | 3 +++ .../nativeui/aivoice/src/AivoiceChatContentListItemView.cpp | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp index 0f248c3de..afec3424d 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp @@ -1636,7 +1636,10 @@ namespace OHOS if (get_bk_websocket_tts_tick() == 0) // 代表可以发录音文本 { if (AiVoiceModel::GetInstance().GetInit_4gai_task()) + { + LOS_Msleep(200); AiVoiceModel::GetInstance().ProcessTextByPunctuation(); + } } else { diff --git a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AivoiceChatContentListItemView.cpp b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AivoiceChatContentListItemView.cpp index 0ec9239dc..48c92bd58 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AivoiceChatContentListItemView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AivoiceChatContentListItemView.cpp @@ -108,6 +108,11 @@ namespace OHOS mindLabel.SetY(chatContentScrollView.GetY() + chatContentScrollView.GetHeight()- 40); mindLabel.SetVisible(true); } + else + { + chatContentScrollView.Resize(isAiAnswerFlag ? QUESTION_CHATCONTENTSCROLLVIEW_W : ANSWER_CHATCONTENTSCROLLVIEW_W, GetHeight() - 30); + mindLabel.SetVisible(false); + } } void AivoiceChatContentListItemView::SetUpChild() -- 2.17.1