Update package version to 0.1.170907
[platform/core/uifw/inputdelegator.git] / src / SttFeedback.cpp
index ffc16cc..ec7d91f 100755 (executable)
@@ -49,7 +49,7 @@ void SttFeedback::OnResult(
        // Partial result case : STT_RECOGNITION_TYPE_FREE_PARTIAL
        // Normal result case : STT_RECOGNITION_TYPE_FREE
 
-       if(results.size() < 0) {
+       if(results.size() < 1) {
                PRINTFUNC(DLOG_ERROR, "Result size : %d", results.size());
                vd.state = STT_STATE_VAL_NOT_RECOGNISED;
                set_animation_state(&vd);
@@ -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)