MAS_LOGE("@@ Request multi-assistant send ASR result : Fail to make message");
return -1; //MA_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[DEBUG] multi-assistant send ASR result, asr_result(%d)", asr_result);
+ MAS_LOGD("[DEBUG] multi-assistant send ASR result, asr_result(%p)", asr_result);
}
char* temp_asr_result = NULL;
mas_set_current_client_by_appid(appid);
if (mas_get_client_pid_by_appid(appid) != -1) {
+ /* Bring MA client to foreground - is there a better way instead of launching? */
+ mas_launch_client_by_appid(appid);
MAS_LOGD("MA Client with appid %s exists, requesting speech data", (appid ? appid : "NULL"));
ma_client_set_temp_speech_data_requested(1);
int ret = multi_assistant_service_plugin_request_speech_data();
}
}
+ int status = aul_app_get_status_bypid(ret);
+ if (-1 != ret && 0 > status) {
+ MAS_LOGE("The PID for %s was %d, but it seems to be terminated : %d",
+ (appid ? appid : "NULL"), ret, status);
+ mas_client_deinitialize(ret);
+ ret = -1;
+ }
+
return ret;
}
mas_set_current_client_by_wakeup_word(wakeup_word);
masc_ui_dbus_change_assistant(mas_get_client_appid_by_wakeup_word(wakeup_word));
if ((pid = mas_get_client_pid_by_wakeup_word(wakeup_word)) != -1) {
+ /* Bring MA client to foreground - is there a better way instead of launching? */
+ mas_launch_client_by_wakeup_word(wakeup_word);
MAS_LOGD("MA Client with wakeup word %s exists, requesting speech data", (wakeup_word ? wakeup_word : "NULL"));
ma_client_set_temp_speech_data_requested(1);
int ret = -1;