projects
/
platform
/
core
/
uifw
/
inputdelegator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix indentation
[platform/core/uifw/inputdelegator.git]
/
src
/
SttFeedback.cpp
diff --git
a/src/SttFeedback.cpp
b/src/SttFeedback.cpp
index
1af1796
..
f6ae7da
100755
(executable)
--- 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;
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;
default:
PRINTFUNC(DLOG_INFO, "");
break;
@@
-99,12
+104,7
@@
void SttFeedback::OnResult(
void SttFeedback::AutoStart(void) {
PRINTFUNC(DLOG_DEBUG, "start");
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)
}
void SttFeedback::SttIdle(void)
@@
-172,8
+172,6
@@
void SttFeedback::SttProcessing(void)
set_animation_state(&vd);
}
set_animation_state(&vd);
}
-
-
void SttFeedback::OnError(stt_error_e reason)
{
if(!owner) {
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);
}
show_error_message(&vd, reason);
}
-
void SttFeedback::SetVoiceData(void *data) {
if(!data) {
PRINTFUNC(DLOG_WARN, "no data");
void SttFeedback::SetVoiceData(void *data) {
if(!data) {
PRINTFUNC(DLOG_WARN, "no data");