}
/* 2. Request wav play */
- bool is_sound_done = play_start_sound_for_uid(uid);
+ bool is_playing = play_start_sound_for_uid(uid);
/* 3. Create recorder & engine initialize */
ret = sttd_engine_agent_recognize_start_engine(uid, lang, recognition_type, silence, appid, credential, NULL);
sttd_client_set_state(uid, APP_STATE_RECORDING);
g_recording_log_count = 0;
-
- app_state_e temp_app_state;
-
- if (true == is_sound_done) {
+ if (false == is_playing) {
SLOG(LOG_INFO, TAG_STTD, "[Server] No sound play");
ret = sttd_engine_agent_recognize_start_recorder(uid, appid);
return ret;
}
+ app_state_e temp_app_state;
if (0 != sttd_client_get_state(uid, &temp_app_state)) {
SLOG(LOG_ERROR, TAG_STTD, "[Server ERROR] uid is NOT valid");
return STTD_ERROR_INVALID_PARAMETER;