if (NULL == client->current_engine_id) {
if (STT_STATE_RECORDING == client->current_state || STT_STATE_PROCESSING == client->current_state) {
+ SLOG(LOG_INFO, TAG_STTC, "[INFO] stt cancel is invoked by engine_changed_cb, state(%d)", client->current_state);
ret = stt_cancel(stt);
if (0 != ret) {
SLOG(LOG_DEBUG, TAG_STTC, "[DEBUG] STT client cancelling...");
return STT_ERROR_PERMISSION_DENIED;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== Create STT");
+ SLOG(LOG_INFO, TAG_STTC, "===== Create STT");
if (NULL == stt) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] A handle is null");
return ret;
}
- SLOG(LOG_DEBUG, TAG_STTC, "[Success] uid(%d)", (*stt)->handle);
+ SLOG(LOG_INFO, TAG_STTC, "[Success] uid(%d)", (*stt)->handle);
SLOG(LOG_DEBUG, TAG_STTC, "=====");
SLOG(LOG_DEBUG, TAG_STTC, " ");
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== Destroy STT");
+ SLOG(LOG_INFO, TAG_STTC, "===== Destroy STT");
/* check used callback */
if (0 != stt_client_get_use_callback(client)) {
stt = NULL;
- SLOG(LOG_DEBUG, TAG_STTC, "=====");
+ SLOG(LOG_INFO, TAG_STTC, "=====");
SLOG(LOG_DEBUG, TAG_STTC, " ");
return STT_ERROR_NONE;
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== Foreach Supported engine");
+ SLOG(LOG_INFO, TAG_STTC, "===== Foreach Supported engine");
if (NULL == callback) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Input parameter is NULL"); //LCOV_EXCL_LINE
client->supported_engine_cb = NULL;
client->supported_engine_user_data = NULL;
- SLOG(LOG_DEBUG, TAG_STTC, "=====");
+ SLOG(LOG_INFO, TAG_STTC, "=====");
SLOG(LOG_DEBUG, TAG_STTC, " ");
return ret;
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== Get current engine");
+ SLOG(LOG_INFO, TAG_STTC, "===== Get current engine");
if (NULL == engine_id) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Input parameter is NULL"); //LCOV_EXCL_LINE
}
}
- SLOG(LOG_DEBUG, TAG_STTC, "=====");
+ SLOG(LOG_INFO, TAG_STTC, "=====");
SLOG(LOG_DEBUG, TAG_STTC, " ");
return ret;
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== Set current engine");
+ SLOG(LOG_INFO, TAG_STTC, "===== Set current engine");
if (NULL == engine_id) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Input parameter is NULL"); //LCOV_EXCL_LINE
client->current_engine_id = NULL;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== engined_id(%s)", engine_id);
+ SLOG(LOG_INFO, TAG_STTC, "===== engined_id(%s)", engine_id);
client->current_engine_id = strdup(engine_id);
return ret;
}
- SLOG(LOG_DEBUG, TAG_STTC, "=====");
+ SLOG(LOG_INFO, TAG_STTC, "=====");
SLOG(LOG_DEBUG, TAG_STTC, " ");
return 0;
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== Set credential");
+ SLOG(LOG_INFO, TAG_STTC, "===== Set credential");
if (NULL == credential) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Input parameter is NULL");
}
client->credential = strdup(credential);
- SLOG(LOG_DEBUG, TAG_STTC, "=====");
+ SLOG(LOG_INFO, TAG_STTC, "=====");
SLOG(LOG_DEBUG, TAG_STTC, " ");
return STT_ERROR_NONE;
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== Set private data");
+ SLOG(LOG_INFO, TAG_STTC, "===== Set private data");
if (NULL == key || NULL == data) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Invalid parameter");
}
}
- SLOG(LOG_DEBUG, TAG_STTC, "=====");
+ SLOG(LOG_INFO, TAG_STTC, "=====");
SLOG(LOG_DEBUG, TAG_STTC, "");
return STT_ERROR_NONE;
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== Get private data");
+ SLOG(LOG_INFO, TAG_STTC, "===== Get private data");
if (NULL == key || NULL == data) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Invalid parameter");
*data = NULL;
}
- SLOG(LOG_DEBUG, TAG_STTC, "=====");
+ SLOG(LOG_INFO, TAG_STTC, "=====");
SLOG(LOG_DEBUG, TAG_STTC, "");
return STT_ERROR_NONE;
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== Set STT server");
+ SLOG(LOG_INFO, TAG_STTC, "===== Set STT server");
if (NULL == key || NULL == user_data) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Invalid parameter");
free(private_key);
private_key = NULL;
- SLOG(LOG_DEBUG, TAG_STTC, "======");
+ SLOG(LOG_INFO, TAG_STTC, "======");
SLOG(LOG_DEBUG, TAG_STTC, " ");
return ret;
}
g_connect_timer = NULL;
- SLOG(LOG_DEBUG, TAG_STTC, "===== Connect stt-service");
+ SLOG(LOG_INFO, TAG_STTC, "===== Connect stt-service");
/* request initialization */
bool silence_supported = false;
}
#endif
//LCOV_EXCL_STOP
- SLOG(LOG_DEBUG, TAG_STTC, "[SUCCESS] uid(%d)", client->uid);
+ SLOG(LOG_INFO, TAG_STTC, "[SUCCESS] uid(%d)", client->uid);
client->before_state = client->current_state;
client->current_state = STT_STATE_READY;
SLOG(LOG_WARN, TAG_STTC, "[WARNING] State changed callback is null");
}
- SLOG(LOG_DEBUG, TAG_STTC, "=====");
+ SLOG(LOG_INFO, TAG_STTC, "=====");
SLOG(LOG_DEBUG, TAG_STTC, " ");
return EINA_FALSE;
return STT_ERROR_INVALID_PARAMETER;
}
+ SLOG(LOG_INFO, TAG_STTC, "===== Prepare STT");
+
/* check state */
if (client->current_state != STT_STATE_CREATED) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Invalid State: Current state(%d) is not 'CREATED'", client->current_state);
g_connect_timer = ecore_timer_add(0.02, __stt_connect_daemon, (void*)client);
ecore_thread_main_loop_end();
- SLOG(LOG_DEBUG, TAG_STTC, "=====");
+ SLOG(LOG_INFO, TAG_STTC, "=====");
SLOG(LOG_DEBUG, TAG_STTC, " ");
return STT_ERROR_NONE;
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== Unprepare STT");
+ SLOG(LOG_INFO, TAG_STTC, "===== Unprepare STT");
/* check state */
if (client->current_state != STT_STATE_READY) {
g_connect_timer = NULL;
}
- SLOG(LOG_DEBUG, TAG_STTC, "=====");
+ SLOG(LOG_INFO, TAG_STTC, "=====");
SLOG(LOG_DEBUG, TAG_STTC, " ");
return STT_ERROR_NONE;
return false;
}
+ SLOG(LOG_INFO, TAG_STTC, "===== supported language callback");
+
/* call callback function */
if (NULL != client->supported_lang_cb) {
return client->supported_lang_cb(stt, language, client->supported_lang_user_data);
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== Foreach Supported Language");
+ SLOG(LOG_INFO, TAG_STTC, "===== Foreach Supported Language");
if (NULL == callback) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Input parameter is NULL"); //LCOV_EXCL_LINE
client->supported_lang_cb = NULL;
client->supported_lang_user_data = NULL;
- SLOG(LOG_DEBUG, TAG_STTC, "=====");
+ SLOG(LOG_INFO, TAG_STTC, "=====");
SLOG(LOG_DEBUG, TAG_STTC, " ");
return ret;
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== Get Default Language");
+ SLOG(LOG_INFO, TAG_STTC, "===== Get Default Language");
if (NULL == language) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Input parameter is NULL"); //LCOV_EXCL_LINE
SLOG(LOG_DEBUG, TAG_STTC, "[SUCCESS] Current language = %s", *language);
}
- SLOG(LOG_DEBUG, TAG_STTC, "=====");
+ SLOG(LOG_INFO, TAG_STTC, "=====");
SLOG(LOG_DEBUG, TAG_STTC, " ");
return ret;
*state = client->current_state;
+ SLOG(LOG_INFO, TAG_STTC, "===== Get state(%d)", *state);
+
switch (*state) {
case STT_STATE_CREATED: SLOG(LOG_DEBUG, TAG_STTC, "Current state is 'CREATED'"); break;
case STT_STATE_READY: SLOG(LOG_DEBUG, TAG_STTC, "Current state is 'Ready'"); break;
if (NULL != client->err_msg) {
*err_msg = strdup(client->err_msg);
- SLOG(LOG_DEBUG, TAG_STTC, "[SUCCESS] Error msg (%s)", *err_msg); //LCOV_EXCL_LINE
+ SLOG(LOG_INFO, TAG_STTC, "[SUCCESS] Error msg (%s)", *err_msg); //LCOV_EXCL_LINE
} else {
- SLOG(LOG_DEBUG, TAG_STTC, "[SUCCESS] Error msg (NULL)"); //LCOV_EXCL_LINE
+ SLOG(LOG_INFO, TAG_STTC, "[SUCCESS] Error msg (NULL)"); //LCOV_EXCL_LINE
}
- SLOG(LOG_DEBUG, TAG_STTC, "====="); //LCOV_EXCL_LINE
+ SLOG(LOG_INFO, TAG_STTC, "====="); //LCOV_EXCL_LINE
SLOG(LOG_DEBUG, TAG_STTC, " "); //LCOV_EXCL_LINE
return STT_ERROR_NONE;
}
//LCOV_EXCL_STOP
} else {
- SLOG(LOG_DEBUG, TAG_STTC, "[SUCCESS] recognition type is %s", *support ? "true " : "false");
+ SLOG(LOG_INFO, TAG_STTC, "[SUCCESS] recognition type is %s", *support ? "true " : "false");
break;
}
}
return STT_ERROR_INVALID_STATE;
}
+ SLOG(LOG_INFO, TAG_STTC, "===== Set silence detection, supported(%d), type(%d)", client->silence_supported, type);
+
if (true == client->silence_supported) {
if (type >= STT_OPTION_SILENCE_DETECTION_FALSE && type <= STT_OPTION_SILENCE_DETECTION_AUTO) {
client->silence = type;
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== STT SET START SOUND");
+ SLOG(LOG_INFO, TAG_STTC, "===== STT SET START SOUND");
if (NULL == filename) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Input parameter is NULL"); //LCOV_EXCL_LINE
}
//LCOV_EXCL_STOP
} else {
- SLOG(LOG_DEBUG, TAG_STTC, "[SUCCESS] Set start sound : %s", filename);
+ SLOG(LOG_INFO, TAG_STTC, "[SUCCESS] Set start sound : %s", filename);
break;
}
}
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== STT UNSET START SOUND");
+ SLOG(LOG_INFO, TAG_STTC, "===== STT UNSET START SOUND");
/* check state */
if (client->current_state != STT_STATE_READY) {
}
//LCOV_EXCL_STOP
} else {
- SLOG(LOG_DEBUG, TAG_STTC, "[SUCCESS] Unset start sound");
+ SLOG(LOG_INFO, TAG_STTC, "[SUCCESS] Unset start sound");
break;
}
}
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== STT SET STOP SOUND");
+ SLOG(LOG_INFO, TAG_STTC, "===== STT SET STOP SOUND");
if (NULL == filename) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Input parameter is NULL"); //LCOV_EXCL_LINE
}
//LCOV_EXCL_STOP
} else {
- SLOG(LOG_DEBUG, TAG_STTC, "[SUCCESS] Set stop sound : %s", filename);
+ SLOG(LOG_INFO, TAG_STTC, "[SUCCESS] Set stop sound : %s", filename);
break;
}
}
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== STT UNSET STOP SOUND");
+ SLOG(LOG_INFO, TAG_STTC, "===== STT UNSET STOP SOUND");
/* check state */
if (client->current_state != STT_STATE_READY) {
}
//LCOV_EXCL_STOP
} else {
- SLOG(LOG_DEBUG, TAG_STTC, "[SUCCESS] Unset stop sound");
+ SLOG(LOG_INFO, TAG_STTC, "[SUCCESS] Unset stop sound");
break;
}
}
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== STT START");
+ SLOG(LOG_INFO, TAG_STTC, "===== STT START");
/* check state */
if (client->current_state != STT_STATE_READY) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Fail to start : %s", __stt_get_error_code(ret)); //LCOV_EXCL_LINE
client->internal_state = STT_INTERNAL_STATE_NONE;
} else {
- SLOG(LOG_DEBUG, TAG_STTC, "[SUCCESS] Start is successful but not done");
+ SLOG(LOG_INFO, TAG_STTC, "[SUCCESS] Start is successful but not done");
}
free(temp);
temp = NULL;
- SLOG(LOG_DEBUG, TAG_STTC, "=====");
+ SLOG(LOG_INFO, TAG_STTC, "=====");
SLOG(LOG_DEBUG, TAG_STTC, " ");
return ret;
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== STT STOP");
+ SLOG(LOG_INFO, TAG_STTC, "===== STT STOP");
/* check state */
if (client->current_state != STT_STATE_RECORDING) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Fail to stop : %s", __stt_get_error_code(ret)); //LCOV_EXCL_LINE
client->internal_state = STT_INTERNAL_STATE_NONE;
} else {
- SLOG(LOG_DEBUG, TAG_STTC, "[SUCCESS] Stop is successful but not done");
+ SLOG(LOG_INFO, TAG_STTC, "[SUCCESS] Stop is successful but not done");
}
SLOG(LOG_DEBUG, TAG_STTC, "=====");
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== STT CANCEL");
+ SLOG(LOG_INFO, TAG_STTC, "===== STT CANCEL");
/* check state */
if (STT_STATE_RECORDING != client->current_state && STT_STATE_PROCESSING != client->current_state) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Fail to cancel : %s", __stt_get_error_code(ret)); //LCOV_EXCL_LINE
client->internal_state = STT_INTERNAL_STATE_NONE;
} else {
- SLOG(LOG_DEBUG, TAG_STTC, "[SUCCESS] Cancel is successful but not done");
+ SLOG(LOG_INFO, TAG_STTC, "[SUCCESS] Cancel is successful but not done");
}
SLOG(LOG_DEBUG, TAG_STTC, "=====");
}
g_volume_db = volume;
- SLOG(LOG_DEBUG, TAG_STTC, "Set volume (%f)", g_volume_db);
+ SLOG(LOG_INFO, TAG_STTC, "Set volume (%f)", g_volume_db);
return 0;
}
*volume = g_volume_db;
+ SLOG(LOG_INFO, TAG_STTC, "Get recording volume (%f)", *volume);
+
return STT_ERROR_NONE;
}
}
if (NULL != client->result_time_cb) {
- SLOG(LOG_DEBUG, TAG_STTC, "(%d) event(%d) text(%s) start(%ld) end(%ld)",
+ SLOG(LOG_INFO, TAG_STTC, "(%d) event(%d) text(%s) start(%ld) end(%ld)",
index, event, text, start_time, end_time);
client->result_time_cb(client->stt, index, (stt_result_time_event_e)event,
text, start_time, end_time, client->result_time_user_data);
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== STT FOREACH DETAILED RESULT");
+ SLOG(LOG_INFO, TAG_STTC, "===== STT FOREACH DETAILED RESULT");
if (NULL == callback) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Input parameter is NULL"); //LCOV_EXCL_LINE
client->result_time_cb = NULL;
client->result_time_user_data = NULL;
- SLOG(LOG_DEBUG, TAG_STTC, "=====");
+ SLOG(LOG_INFO, TAG_STTC, "=====");
SLOG(LOG_DEBUG, TAG_STTC, " ");
return ret;
if (STT_INTERNAL_STATE_STARTING == client->internal_state && STT_STATE_RECORDING == client->current_state) {
client->internal_state = STT_INTERNAL_STATE_NONE;
- SLOG(LOG_DEBUG, TAG_STTC, "Internal state change to NONE");
+ SLOG(LOG_INFO, TAG_STTC, "Internal state change to NONE");
} else if (STT_INTERNAL_STATE_STOPPING == client->internal_state && STT_STATE_PROCESSING == client->current_state) {
client->internal_state = STT_INTERNAL_STATE_NONE;
- SLOG(LOG_DEBUG, TAG_STTC, "Internal state change to NONE");
+ SLOG(LOG_INFO, TAG_STTC, "Internal state change to NONE");
} else if (STT_INTERNAL_STATE_CANCELING == client->internal_state && STT_STATE_READY == client->current_state) {
client->internal_state = STT_INTERNAL_STATE_NONE;
- SLOG(LOG_DEBUG, TAG_STTC, "Internal state change to NONE");
+ SLOG(LOG_INFO, TAG_STTC, "Internal state change to NONE");
}
if (NULL != client->state_changed_cb) {
client->state_changed_cb(client->stt, client->before_state,
client->current_state, client->state_changed_user_data);
stt_client_not_use_callback(client);
- SLOG(LOG_DEBUG, TAG_STTC, "State changed callback is called, State(%d)", client->current_state);
+ SLOG(LOG_INFO, TAG_STTC, "State changed callback is called, State(%d)", client->current_state);
} else {
SLOG(LOG_WARN, TAG_STTC, "[WARNING] State changed callback is null, State(%d)", client->current_state); //LCOV_EXCL_LINE
}
client->recognition_result_cb(client->stt, client->event, (const char**)client->data_list, client->data_count,
client->msg, client->recognition_result_user_data);
stt_client_not_use_callback(client);
- SLOG(LOG_DEBUG, TAG_STTC, "client recognition result callback called");
+ SLOG(LOG_INFO, TAG_STTC, "client recognition result callback called");
} else {
SLOG(LOG_WARN, TAG_STTC, "[WARNING] User recognition result callback is NULL");
}
}
if (NULL != msg)
- SECURE_SLOG(LOG_DEBUG, TAG_STTC, "Recognition Result Message = %s", msg);
+ SECURE_SLOG(LOG_INFO, TAG_STTC, "Recognition Result Message = %s", msg);
int i = 0;
for (i = 0; i < data_count; i++) {
if (NULL != data[i])
- SECURE_SLOG(LOG_DEBUG, TAG_STTC, "Recognition Result[%d] = %s", i, data[i]);
+ SECURE_SLOG(LOG_INFO, TAG_STTC, "Recognition Result[%d] = %s", i, data[i]);
}
if (NULL != client->recognition_result_cb) {
stt_client_use_callback(client);
client->speech_status_cb(client->stt, client->speech_status, client->speech_status_user_data);
stt_client_not_use_callback(client);
- SLOG(LOG_DEBUG, TAG_STTC, "Speech status callback is called"); //LCOV_EXCL_LINE
+ SLOG(LOG_INFO, TAG_STTC, "Speech status callback is called"); //LCOV_EXCL_LINE
} else {
SLOG(LOG_WARN, TAG_STTC, "[WARNING] Speech status callback is null"); //LCOV_EXCL_LINE
}
return STT_ERROR_INVALID_STATE;
}
+ SLOG(LOG_INFO, TAG_STTC, "[INFO] Set recognition result cb");
+
client->recognition_result_cb = callback;
client->recognition_result_user_data = user_data;
return STT_ERROR_INVALID_STATE;
}
+ SLOG(LOG_INFO, TAG_STTC, "[INFO] Unset recognition result cb");
+
client->recognition_result_cb = NULL;
client->recognition_result_user_data = NULL;
return STT_ERROR_INVALID_STATE;
}
+ SLOG(LOG_INFO, TAG_STTC, "[INFO] Set state changed cb");
+
client->state_changed_cb = callback;
client->state_changed_user_data = user_data;
return STT_ERROR_INVALID_STATE;
}
+ SLOG(LOG_INFO, TAG_STTC, "[INFO] Unset state changed cb");
+
client->state_changed_cb = NULL;
client->state_changed_user_data = NULL;
return STT_ERROR_INVALID_STATE;
}
+ SLOG(LOG_INFO, TAG_STTC, "[INFO] Set error cb");
+
client->error_cb = callback;
client->error_user_data = user_data;
return STT_ERROR_INVALID_STATE;
}
+ SLOG(LOG_INFO, TAG_STTC, "[INFO] Unset error cb");
+
client->error_cb = NULL;
client->error_user_data = NULL;
return STT_ERROR_INVALID_STATE;
}
+ SLOG(LOG_INFO, TAG_STTC, "[INFO] Set default language changed cb");
+
client->default_lang_changed_cb = callback;
client->default_lang_changed_user_data = user_data;
return STT_ERROR_INVALID_STATE;
}
+ SLOG(LOG_INFO, TAG_STTC, "[INFO] Unset default language changed cb");
+
client->default_lang_changed_cb = NULL;
client->default_lang_changed_user_data = NULL;
return STT_ERROR_INVALID_STATE;
}
+ SLOG(LOG_INFO, TAG_STTC, "[INFO] Set engine changed cb");
+
client->engine_changed_cb = callback;
client->engine_changed_user_data = user_data;
return STT_ERROR_INVALID_STATE;
}
+ SLOG(LOG_INFO, TAG_STTC, "[INFO] Unset engine changed cb");
+
client->engine_changed_cb = NULL;
client->engine_changed_user_data = NULL;
return STT_ERROR_INVALID_STATE;
}
+ SLOG(LOG_INFO, TAG_STTC, "[INFO] Set speech status cb");
+
client->speech_status_cb = callback;
client->speech_status_user_data = user_data;
return STT_ERROR_INVALID_STATE;
}
+ SLOG(LOG_INFO, TAG_STTC, "[INFO] Unset speech status cb");
+
client->speech_status_cb = NULL;
client->speech_status_user_data = NULL;
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== STT START FILE");
+ SLOG(LOG_INFO, TAG_STTC, "===== STT START FILE");
/* check state */
if (client->current_state != STT_STATE_READY) {
if ((AUL_R_OK != ret) || (0 == strlen(appid))) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Fail to get application ID");
} else {
- SLOG(LOG_DEBUG, TAG_STTC, "[DEBUG] Current app id is %s", appid);
+ SLOG(LOG_INFO, TAG_STTC, "[DEBUG] Current app id is %s", appid);
}
char* temp = NULL;
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Fail to start file : %s", __stt_get_error_code(ret));
client->internal_state = STT_INTERNAL_STATE_NONE;
} else {
- SLOG(LOG_DEBUG, TAG_STTC, "[SUCCESS] Start is successful but not done");
+ SLOG(LOG_INFO, TAG_STTC, "[SUCCESS] Start is successful but not done");
}
free(temp);
return STT_ERROR_INVALID_PARAMETER;
}
- SLOG(LOG_DEBUG, TAG_STTC, "===== STT CANCEL FILE");
+ SLOG(LOG_INFO, TAG_STTC, "===== STT CANCEL FILE");
/* check state */
if (STT_STATE_RECORDING != client->current_state && STT_STATE_PROCESSING != client->current_state) {
SLOG(LOG_ERROR, TAG_STTC, "[ERROR] Fail to cancel file : %s", __stt_get_error_code(ret));
client->internal_state = STT_INTERNAL_STATE_NONE;
} else {
- SLOG(LOG_DEBUG, TAG_STTC, "[SUCCESS] Cancel file is successful but not done");
+ SLOG(LOG_INFO, TAG_STTC, "[SUCCESS] Cancel file is successful but not done");
}
SLOG(LOG_DEBUG, TAG_STTC, "=====");