From: luozheng <1732036298@qq.com> Date: Tue, 22 Oct 2024 11:14:47 +0000 (+0800) Subject: AI语音界面修改,提示将英文改为中文提醒 X-Git-Tag: fd230_release_V1.3.102~188^2~16 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=1b0fbe0c69251b276c4190fe4d115dce7c45541c;p=mirrors%2FFD230.git AI语音界面修改,提示将英文改为中文提醒 --- 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 d9bd5e891..e16011c69 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp @@ -2,7 +2,7 @@ * @Author: luozheng 1732036298@qq.com * @Date: 2024-06-20 15:14:50 * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2024-10-19 18:26:01 + * @LastEditTime: 2024-10-22 17:30:40 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp */ #include "aivoice/include/AiVoiceModel.h" @@ -474,7 +474,7 @@ namespace OHOS if (errnote.empty()) // 如果没有回应数据 { WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::GetErrnote is empty!!"); - AiVoiceModel::GetInstance().SetErrnote("response data is empty"); + AiVoiceModel::GetInstance().SetErrnote("响应内容为空"); std::string str = AiVoiceModel::GetInstance().GetErrnote(); SendMsgToUIService(UI_AI_JUMP_TO_RESPONDERR_VIEW, 0, (void *)str.c_str(), str.length()); return; @@ -619,7 +619,7 @@ namespace OHOS if (Time < 0) // 如果思考时间超时30s,进入连接超时界面 { AiVoiceModel::GetInstance().AIVoice_StopTimer(); - AiVoiceModel::GetInstance().SetErrnote("The connection timed out. Please restart the conversation"); + AiVoiceModel::GetInstance().SetErrnote("连接超时,请重新开始对话"); std::string str = AiVoiceModel::GetInstance().GetErrnote(); SendMsgToUIService(UI_AI_JUMP_TO_RESPONDERR_VIEW, 0, (void *)str.c_str(), str.length()); } @@ -630,7 +630,7 @@ namespace OHOS // 蓝牙的连接状态判断,如果AI思考过程中途断连,直接弹窗提示,不在硬等 if (get_ble_connect() == false) { - AiVoiceModel::GetInstance().SetErrnote("ble is disconnected"); + AiVoiceModel::GetInstance().SetErrnote("手机蓝牙已断开"); std::string str = AiVoiceModel::GetInstance().GetErrnote(); SendMsgToUIService(UI_AI_JUMP_TO_RESPONDERR_VIEW, 0, (void *)str.c_str(), str.length()); }