X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FSttFeedback.cpp;h=f6ae7dae11fae4077aca1beb3a8df96965073ef8;hb=ae9be91f1eefb8517016a9b9c91730b587970833;hp=1af1796dc3bfa2dee1ee316c204c7e1b4e09481c;hpb=d9a3622dcfbeef6778958109dea9fe8b062d3892;p=platform%2Fcore%2Fuifw%2Finputdelegator.git diff --git a/src/SttFeedback.cpp b/src/SttFeedback.cpp index 1af1796..f6ae7da 100755 --- a/src/SttFeedback.cpp +++ b/src/SttFeedback.cpp @@ -73,6 +73,11 @@ void SttFeedback::OnResult( vd.result_type = STT_RESULT_EVENT_PARTIAL_RESULT; voice_get_string(result.c_str(), &vd); break; + case STT_RESULT_EVENT_ERROR: + PRINTFUNC(DLOG_DEBUG, "STT_RESULT_EVENT_ERROR"); + vd.state = STT_STATE_VAL_NOT_RECOGNISED; + set_animation_state(&vd); + break; default: PRINTFUNC(DLOG_INFO, ""); break; @@ -99,12 +104,7 @@ void SttFeedback::OnResult( void SttFeedback::AutoStart(void) { PRINTFUNC(DLOG_DEBUG, "start"); - - if (elm_config_access_get()){ - PRINTFUNC(DLOG_DEBUG, "accessbility on: It will not start automatically."); - } else { - start_by_press((VoiceData *) owner); - } + start_by_press((VoiceData *) owner); } void SttFeedback::SttIdle(void) @@ -172,8 +172,6 @@ void SttFeedback::SttProcessing(void) set_animation_state(&vd); } - - void SttFeedback::OnError(stt_error_e reason) { if(!owner) { @@ -189,7 +187,6 @@ void SttFeedback::OnError(stt_error_e reason) show_error_message(&vd, reason); } - void SttFeedback::SetVoiceData(void *data) { if(!data) { PRINTFUNC(DLOG_WARN, "no data");