if (STT_INVALID_UID != uid) {
/* cancel engine recognition */
int ret = sttd_server_stop(uid);
- if (0 != ret) {
+ if (STTD_ERROR_NONE != ret) {
SLOG(LOG_ERROR, TAG_STTD, "[Server ERROR] Fail to stop : result(%d)", ret);
}
}
}
SLOG(LOG_INFO, TAG_STTD, "[Server SUCCESS] Start recognition");
- return STTD_RESULT_STATE_DONE;
+ } else {
+ SLOG(LOG_INFO, TAG_STTD, "[Server] Wait sound finish");
}
- SLOG(LOG_INFO, TAG_STTD, "[Server] Wait sound finish");
-
- return STTD_RESULT_STATE_NOT_DONE;
+ return STTD_ERROR_NONE;
}
Eina_Bool __time_out_for_processing(void *data)
SLOG(LOG_INFO, TAG_STTD, "[INFO] Add g_processing_timer");
g_processing_timer = ecore_timer_add(g_processing_timeout, __time_out_for_processing, NULL);
-
- return STTD_RESULT_STATE_NOT_DONE;
} else {
SLOG(LOG_INFO, TAG_STTD, "[Server] No sound play");
SLOG(LOG_INFO, TAG_STTD, "[INFO] Add g_processing_timer");
g_processing_timer = ecore_timer_add(g_processing_timeout, __time_out_for_processing, NULL);
-
- return STTD_RESULT_STATE_DONE;
}
return STTD_ERROR_NONE;