Modify the screen UI for stt mode and refactoring code
[platform/core/uifw/inputdelegator.git] / src / SttFeedback.cpp
index a3b5f2a..ec7d91f 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;