From: hcj <1224667075@qq.com> Date: Mon, 15 Sep 2025 07:22:47 +0000 (+0800) Subject: 合并 X-Git-Tag: leiniao_debug_1.0.0_20250922_020716~13^2~31^2~4 X-Git-Url: http://git.snicker.com.cn/css/static/script.js?a=commitdiff_plain;h=9e41d3e5b25bdf264af3abf51a43c1812d848c27;p=mirrors%2FFD230.git 合并 --- 9e41d3e5b25bdf264af3abf51a43c1812d848c27 diff --cc code/sdk/application/wearable/fd230/nativeapp/nativeui/aivoice/src/AiVoiceModel.cpp index 7f8bde1b1,1fa67f358..b40612b9d --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/aivoice/src/AiVoiceModel.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/aivoice/src/AiVoiceModel.cpp @@@ -1991,35 -1958,21 +1958,38 @@@ extern "C return 0; } - static uint8_t clear_queue_stream = 0; - uint8_t get_clear_queue_stream(void) + #ifdef BLE_INSTRUCT + + #include "bleEvent.h" + #include "bleInstruct.h" + + void ble_set_ai_Question_str_(char *buf) { - return clear_queue_stream; + OHOS::AiVoiceModel::GetInstance().SetUserQuestionStr(std::string(buf)); } - // 清空队列中可能存在的音频数据 - void set_clear_queue_stream(uint8_t state) + void ble_set_ai_Answer_str_(char *buf, uint8_t type) { - clear_queue_stream = state; + OHOS::AiVoiceModel::GetInstance().SetAiAnswerStrStr(std::string(buf), type); } + + #ifdef BLE_INSTRUCT + + #include "bleEvent.h" + #include "bleInstruct.h" + + void ble_set_ai_Question_str_(char *buf) + { + OHOS::AiVoiceModel::GetInstance().SetUserQuestionStr(std::string(buf)); + } + + + void ble_set_ai_Answer_str_(char *buf,uint8_t type) + { + OHOS::AiVoiceModel::GetInstance().SetAiAnswerStrStr(std::string(buf),type); + } + extern bleInstruct_t_ bleInstruct_t; void ble_AI_init(void)