}
SECURE_LOGD("result_text = %s", result_text.c_str());
+ stop_voice_recorder();
char *filePath = NULL;
voice_recorder *vr = _voice_recorder_get_data();
- if (!vr)
+ if (vr)
filePath = vr->file_path;
+
char *path[] = {filePath, };
reply_to_sender_by_callback(result_text.c_str(), "voice", (const char **)path, NULL);
destroy_voice();
PRINTFUNC(DLOG_DEBUG, "");
-
if (true == _app_stt_initialize(voicedata)) {
LOGD("_app_stt_initialize None Error");
voicedata->voicefw_state = 1;
int tempVal = vd->sttmanager->GetCurrent();
if(tempVal == STT_STATE_CREATED) {
- PRINTFUNC(DLOG_WARN, "IGNORE TOUCH event before STT READY. STT is preparing", vd->state);
+ PRINTFUNC(DLOG_WARN, "IGNORE TOUCH event before STT READY. STT is preparing");
return;
}
elm_naviframe_item_pop_cb_set(navi_it, __stt_entry_detailed_view_pop_cb, (void *)voicedata);
elm_naviframe_item_title_enabled_set(navi_it, EINA_FALSE, EINA_FALSE);
free(str);
+ } else {
+ if (str) free(str);
+ str = NULL;
}
return;
voicedata->main_entry = NULL;
voicedata->state = STT_STATE_VAL_INIT;
voicedata->kbd_lang = NULL;
+ voicedata->setup_timer = NULL;
voicedata->start_timer = NULL;
voicedata->refresh_timer = NULL;
voicedata->textblock_timer = NULL;