Fix indentation
[platform/core/uifw/inputdelegator.git] / src / SttFeedback.cpp
index 1af1796..f6ae7da 100755 (executable)
@@ -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");