if (info.assistant_list.end() != iter) {
try {
int ret = info.interface.set_language(language.c_str());
- MWR_LOGD("set_language returned %d : %s %s %s",
+ MWR_LOGI("set_language returned %d : %s %s %s",
ret, appid.c_str(), info.engine_name.c_str(), language.c_str());
} catch (const std::exception& e) {
MWR_LOGE("[ERROR] wakeup engine %s threw exception : %s",
void CWakeupEngineManager::set_assistant_activated(string appid, bool activated)
{
- MWR_LOGD("[ENTER] : %s %d", appid.c_str(), activated);
+ MWR_LOGI("[ENTER] : %s %d", appid.c_str(), activated);
for (auto& info : mEngineInfo) {
const auto& iter = find_if(info.assistant_list.begin(), info.assistant_list.end(),
[appid](const string& assistant) {
void CWakeupEngineManager::streaming_speech_data_thread_func()
{
- MWR_LOGD("[ENTER]");
+ MWR_LOGI("[ENTER]");
if (nullptr == mSelectedEngine)
return;
while (!(mStopStreamingThread.load())) {
this_thread::sleep_for(chrono::milliseconds(10));
if (index < interface->get_utterance_data_count()) {
- MWR_LOGI("[INFO] Resume thread");
+ MWR_LOGD("[INFO] Resume thread");
break;
}
if (g_speech_pcm_wait_count < cnt) {
}
cnt++;
}
- MWR_LOGI("[INFO] Finish to wait for new feedback data come");
+ MWR_LOGD("[INFO] Finish to wait for new feedback data come");
/* resume feedback thread */
continue;
}
}
}
+
+ MWR_LOGI("[EXIT]");
}
void CWakeupEngineManager::start_streaming_current_utterance_data()
bool CWakeupEngineManager::on_audio_data_require_status(string engine_name, bool require)
{
- MWR_LOGD("[ENTER] %s, %d", engine_name.c_str(), require);
+ MWR_LOGI("[ENTER] %s, %d", engine_name.c_str(), require);
bool found = false;
// LOCK REQUIRED
if (!dbus_connection_send(g_conn_sender, msg, NULL)) {
MAS_LOGE("[Dbus ERROR] <<<< error message : Out Of Memory !");
} else {
- MAS_LOGD("<<<< Send error message : reason(%d), err_msg(%s)", reason, temp_err_msg);
+ MAS_LOGI("<<<< Send error message : reason(%d), err_msg(%s)", reason, temp_err_msg);
dbus_connection_flush(g_conn_sender);
}
} else {
static int last_event = -1;
if (event != last_event) {
- MAS_LOGI("[Dbus DEBUG] Success to Send utterance stream : event (%d)", event);
+ MAS_LOGI("[Dbus DEBUG] Success to Send utterance stream : %d event (%d)", pid, event);
}
last_event = event;
dbus_connection_flush(g_conn_sender);
MAS_LOGE("[Dbus ERROR] Fail to Send");
return -1; // MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[Dbus DEBUG] Success to Send activate message : %d", state);
+ MAS_LOGI("[Dbus DEBUG] Success to Send activate message : %d %d", pid, state);
dbus_connection_flush(g_conn_sender);
}
free(temp_app_id);
return -1; // MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[Dbus DEBUG] Success to Send preprocessing assistant information : %s", app_id);
+ MAS_LOGI("[Dbus DEBUG] Success to Send preprocessing assistant information : %d %s", pid, app_id);
dbus_connection_flush(g_conn_sender);
}
MAS_LOGE("[Dbus ERROR] Fail to Send");
return -1; // MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[Dbus DEBUG] Success to Send streaming section changed information : %d", section);
+ MAS_LOGI("[Dbus DEBUG] Success to Send streaming section changed information : %d %d", pid, section);
dbus_connection_flush(g_conn_sender);
}
MAS_LOGE("[Dbus ERROR] Fail to Send");
return -1; // MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[Dbus DEBUG] Success to Send preprocessing result : %d", temp_result);
+ MAS_LOGI("[Dbus DEBUG] Success to Send preprocessing result : %d %d", pid, temp_result);
dbus_connection_flush(g_conn_sender);
}
free(temp_command);
return -1; // MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[Dbus DEBUG] Success to Send wakeup_engine_command : %s", command);
+ MAS_LOGI("[Dbus DEBUG] Success to Send wakeup_engine_command : %d %s", pid, command);
dbus_connection_flush(g_conn_sender);
}
MAS_LOGE("[Dbus ERROR] Fail to Send");
return -1; // MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[Dbus DEBUG] Success to Send activate message : %d", state);
+ MAS_LOGI("[Dbus DEBUG] Success to Send activate message : %d %d", pid, state);
dbus_connection_flush(g_conn_sender);
}
DBusMessage* reply;
reply = dbus_message_new_method_return(msg);
- MAS_LOGD("[OUT] mas initialize : result(%d)", ret);
+ MAS_LOGI("[OUT] mas initialize : result(%d)", ret);
if (NULL != reply) {
dbus_message_append_args(reply,
DBUS_TYPE_INT32, &ret,
DBusMessage* reply;
reply = dbus_message_new_method_return(msg);
- MAS_LOGD("[OUT] mas deinitialize : result(%d)", ret);
+ MAS_LOGI("[OUT] mas deinitialize : result(%d)", ret);
if (NULL != reply) {
dbus_message_append_args(reply,
DBUS_TYPE_INT32, &ret,
dbus_error_free(&err);
ret = -1; //MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[IN] mas get default voice");
+ MAS_LOGD("[IN] mas get audio format");
ret = mas_client_get_audio_format(pid, &rate, &channel, &audio_type);
}
DBUS_TYPE_INT32, &audio_type,
DBUS_TYPE_INVALID);
if (0 == ret) {
- MAS_LOGD("[OUT] mas get audio format : rate(%d), channel(%d), audio_type(%d)", rate, channel, audio_type);
+ MAS_LOGI("[OUT] mas get audio format : rate(%d), channel(%d), audio_type(%d)", rate, channel, audio_type);
} else {
MAS_LOGE("[OUT ERROR] mas get audio format : result(%d)", ret);
}
dbus_error_free(&err);
ret = -1; //MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[IN] mas get default voice");
+ MAS_LOGD("[IN] mas get audio source type");
ret = mas_client_get_audio_source_type(pid, &type);
}
DBUS_TYPE_STRING, &temp_type,
DBUS_TYPE_INVALID);
if (0 == ret) {
- MAS_LOGD("[OUT] mas get audio source type : type(%s)", temp_type);
+ MAS_LOGI("[OUT] mas get audio source type : type(%s)", temp_type);
} else {
MAS_LOGE("[OUT ERROR] mas get audio source type : result(%d)", ret);
}
dbus_error_free(&err);
ret = -1; //MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[IN] mas send asr result : pid(%d), event(%d), asr_result(%s)", pid, event, asr_result);
+ MAS_LOGI("[IN] mas send asr result : pid(%d), event(%d), asr_result(%s)", pid, event, asr_result);
ret = mas_client_send_asr_result(pid, event, asr_result);
}
dbus_error_free(&err);
ret = -1; //MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[IN] mas send result : pid(%d), display_text(%s), utterance_text(%s), result_json(%s)", pid, display_text, utterance_text, result_json);
+ MAS_LOGI("[IN] mas send result : pid(%d), display_text(%s), utterance_text(%s), result_json(%s)", pid, display_text, utterance_text, result_json);
ret = mas_client_send_result(pid, display_text, utterance_text, result_json);
}
MAS_LOGD("[DEBUG] MAS SEND RECOGNITION RESULT");
if (dbus_error_is_set(&err)) {
- MAS_LOGE("[IN ERROR] mas send error : Get arguments error (%s)", err.message);
+ MAS_LOGE("[IN ERROR] mas send recognition result : Get arguments error (%s)", err.message);
dbus_error_free(&err);
ret = -1; //MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[IN] mas send error : pid(%d), result(%d)", pid, result);
+ MAS_LOGI("[IN] mas send recognition result : pid(%d), result(%d)", pid, result);
ret = mas_client_send_recognition_result(pid, result);
}
dbus_error_free(&err);
ret = -1; //MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[IN] mas send start streaming : pid(%d), type(%d)", pid, type);
+ MAS_LOGI("[IN] mas send start streaming : pid(%d), type(%d)", pid, type);
ret = mas_client_start_streaming_audio_data(pid, type);
}
dbus_error_free(&err);
ret = -1; //MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[IN] mas stop streaming : pid(%d), type(%d)", pid, type);
+ MAS_LOGI("[IN] mas stop streaming : pid(%d), type(%d)", pid, type);
ret = mas_client_stop_streaming_audio_data(pid, type);
}
dbus_error_free(&err);
ret = -1; //MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[IN] mas update voice feedback : pid(%d), state(%d)", pid, state);
+ MAS_LOGI("[IN] mas update voice feedback : pid(%d), state(%d)", pid, state);
ret = mas_client_update_voice_feedback_state(pid, state);
}
dbus_error_free(&err);
ret = -1; //MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[IN] mas send assistant specific command : pid(%d), command(%s)", pid, command);
+ MAS_LOGI("[IN] mas send assistant specific command : pid(%d), command(%s)", pid, command);
ret = mas_client_set_assistant_specific_command(pid, command);
}
dbus_error_free(&err);
ret = -1; //MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[IN] mas set background volume : pid(%d), ratio(%f)", pid, ratio);
+ MAS_LOGI("[IN] mas set background volume : pid(%d), ratio(%f)", pid, ratio);
ret = mas_client_set_background_volume(pid, ratio);
}
if (NULL != app_id && strcmp("#NULL", app_id)) {
temp_app_id = strdup(app_id);
}
- MAS_LOGD("[IN] mas set preprocessing allow mode : pid(%d), mode(%d), app_id(%s)", pid, mode, temp_app_id);
+ MAS_LOGI("[IN] mas set preprocessing allow mode : pid(%d), mode(%d), app_id(%s)", pid, mode, temp_app_id);
ret = mas_client_set_preprocessing_allow_mode(pid, mode, temp_app_id);
if (NULL != temp_app_id)
free(temp_app_id);
dbus_error_free(&err);
ret = -1; //MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[IN] mas send preprocessing result : pid(%d), result(%d)", pid, result);
+ MAS_LOGI("[IN] mas send preprocessing result : pid(%d), result(%d)", pid, result);
ret = mas_client_send_preprocessing_result(pid, (bool)result);
}
dbus_error_free(&err);
ret = -1; //MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[IN] mas set wake word audio require flag : pid(%d), require(%d)", pid, require);
+ MAS_LOGI("[IN] mas set wake word audio require flag : pid(%d), require(%d)", pid, require);
ret = mas_client_set_wake_word_audio_require_flag(pid, (bool)require);
}
dbus_error_free(&err);
ret = -1; //MAS_ERROR_OPERATION_FAILED;
} else {
- MAS_LOGD("[IN] mas set assistant language : pid(%d), language(%s)", pid, language);
+ MAS_LOGI("[IN] mas set assistant language : pid(%d), language(%s)", pid, language);
ret = mas_client_set_assistant_language(pid, language);
}