* @Author: luozheng 1732036298@qq.com
* @Date: 2024-06-20 15:14:50
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-09-26 17:54:07
+ * @LastEditTime: 2024-09-26 22:12:14
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp
*/
#include "aivoice/include/AiVoiceModel.h"
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::UpdateUserQuestionStr");
RemoveLastTwoItemsOrClear();
- /* -------------------------------------------------------------------------- */
- ScreenTurnOn(5 * 1000); // 有消息来就亮屏5秒
- /* -------------------------------------------------------------------------- */
-
if (!AddUserQuestionToChatItems())
{
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AddUserQuestionToChatItems fail!!");
{
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AiVoiceModel::UpdateAiAnswerStr");
- /* -------------------------------------------------------------------------- */
- ScreenTurnOn(5 * 1000); // 有消息来就亮屏5秒
- /* -------------------------------------------------------------------------- */
-
int index = GetChatContentListCount() - 1;
if (index < 0 || index >= MaxChatContentListCount)
{
if (AIResponseType == AiVoiceModel::AI_RECORDING_PARSING_ERROR || AIResponseType == AiVoiceModel::AI_RESPONSE_ERROR)
{
SendMsgToUIService(UI_AI_JUMP_TO_RESPONDERR_VIEW, 0, (void *)errnote.c_str(), errnote.length());
- ScreenTurnOn(5 * 1000); // 有消息来就亮屏5秒
return;
}
aiAnswerStr += str;
AiVoiceModel::GetInstance().SetErrnote("The connection timed out. Please restart the conversation");
std::string str = AiVoiceModel::GetInstance().GetErrnote();
SendMsgToUIService(UI_AI_JUMP_TO_RESPONDERR_VIEW, 0, (void *)str.c_str(), str.length());
- ScreenTurnOn(5 * 1000); // 有消息来就亮屏5秒
}
}
return;