void ThunderBirdModel::HandleSleepModeStart(const char* theme, int is_intention_result)
{
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ThunderBirdModel::HandleSleepModeStart");
+ //判断是否绑定
+ if(bind_status == false)
+ {
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ThunderBirdModel::HandleSleepModeStart: 未绑定,不做处理");
+ return;
+ }
if (ThunderBirdMainView::GetInstance()) {
int currentView = ThunderBirdMainView::GetInstance()->GetCurrentView();
//若为意图识别结果,则跳转到4,否则跳转到2
// 录音结束处理函数
void ThunderBirdModel::HandleAudioRecordingEnd()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ThunderBirdModel::HandleAudioRecordingEnd: 录音结束,跳转到播放界面");
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ThunderBirdModel::HandleAudioRecordingEnd: 录音结束");
// 获取当前视图状态
ThunderBirdMainView *view = ThunderBirdMainView::GetInstance();
LN_WS_INFO("VAD cooldown active, ignoring start request\n");
return;
}
- #ifdef VAD_TEST
+ // #ifdef VAD_TEST
ln_ws_start_audio_chat(LN_AUDIO_CHAT_VOICE_CHAT_REQUEST);
- #endif
+ // #endif
}
else
if (status==2)
cJSON *data_data = cJSON_GetObjectItem(data_obj, "data");
if (data_data && cJSON_IsObject(data_data)) {
// 解析storyTheme字段,存储到text_content中
- cJSON *story_theme = cJSON_GetObjectItem(data_data, "storyTheme");
- if (story_theme && cJSON_IsString(story_theme) && story_theme->valuestring) {
- strncpy(data_msg->text_content, story_theme->valuestring, sizeof(data_msg->text_content) - 1);
- data_msg->text_content[sizeof(data_msg->text_content) - 1] = '\0';
- }
+ // cJSON *story_theme = cJSON_GetObjectItem(data_data, "storyTheme");
+ // if (story_theme && cJSON_IsString(story_theme) && story_theme->valuestring) {
+ // strncpy(data_msg->text_content, story_theme->valuestring, sizeof(data_msg->text_content) - 1);
+ // data_msg->text_content[sizeof(data_msg->text_content) - 1] = '\0';
+ // }
// 解析storyContent字段(RandomStoryResponse特有)
cJSON *story_content = cJSON_GetObjectItem(data_data, "storyContent");