From: sungwook79.park Date: Mon, 6 Nov 2017 10:39:10 +0000 (+0900) Subject: Add STT preparing status screen in voice mode X-Git-Tag: accepted/tizen/unified/20180111.074222~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=537f75f3ec15cdb28f57b11e898b053e4f0afdf1;p=platform%2Fcore%2Fuifw%2Finputdelegator.git Add STT preparing status screen in voice mode Change-Id: I99b115cb752a6a0087c322ad56350c3c080ab47f Signed-off-by: sungwook79.park --- diff --git a/inc/w-input-stt-voice.h b/inc/w-input-stt-voice.h index 7696789..5b0fb1f 100755 --- a/inc/w-input-stt-voice.h +++ b/inc/w-input-stt-voice.h @@ -32,6 +32,7 @@ #define SK_INIT "IDS_VOICE_BODY_TAP_MIC" #define SK_SPEAK_NOW "WDS_VOICE_NPBODY_SPEAK_NOW_ABB" +#define SK_SPEAK_PREPARE "WDS_VOICE_PREPARE_ABB" #define SK_RECOGNITION_FAILED "WDS_VOICE_TPOP_RECOGNITION_FAILED_ABB" #define SK_DOUBLE_TAP_TO_SPEAK "WDS_TTS_TBBODY_DOUBLE_TAP_TO_SPEAK" diff --git a/po/en_US.po b/po/en_US.po index 345353c..778baf4 100644 --- a/po/en_US.po +++ b/po/en_US.po @@ -275,4 +275,7 @@ msgid "WDS_IME_HEADER_RECENT_M_RECETLY_SENT_EMOJIS_ABB" msgstr "Recent" msgid "WDS_WNOTI_POP_ALL_CHANGES_WILL_BE_DISCARDED" -msgstr "All changes will be discarded." \ No newline at end of file +msgstr "All changes will be discarded." + +msgid "WDS_VOICE_PREPARE_ABB" +msgstr "Preparing..." \ No newline at end of file diff --git a/po/ko_KR.po b/po/ko_KR.po index 7276b0e..ff1a694 100644 --- a/po/ko_KR.po +++ b/po/ko_KR.po @@ -269,4 +269,7 @@ msgid "WDS_IME_HEADER_RECENT_M_RECETLY_SENT_EMOJIS_ABB" msgstr "최근 보낸 이모티콘" msgid "WDS_WNOTI_POP_ALL_CHANGES_WILL_BE_DISCARDED" -msgstr "변경사항을 저장하지 않습니다." \ No newline at end of file +msgstr "변경사항을 저장하지 않습니다." + +msgid "WDS_VOICE_PREPARE_ABB" +msgstr "준비중 입니다..." diff --git a/src/w-input-stt-voice.cpp b/src/w-input-stt-voice.cpp index 5e3f576..c784536 100755 --- a/src/w-input-stt-voice.cpp +++ b/src/w-input-stt-voice.cpp @@ -635,7 +635,11 @@ static void set_cue_text(void *data) if(data) { VoiceData *voicedata = (VoiceData *) data; - elm_object_domain_translatable_part_text_set(voicedata->layout_main, "elm.text.cue", PACKAGE, SK_SPEAK_NOW); + if (voicedata->state == STT_STATE_VAL_INIT) { + elm_object_domain_translatable_part_text_set(voicedata->layout_main, "elm.text.cue", PACKAGE, SK_SPEAK_PREPARE); + } else { + elm_object_domain_translatable_part_text_set(voicedata->layout_main, "elm.text.cue", PACKAGE, SK_SPEAK_NOW); + } elm_object_signal_emit((Evas_Object *)voicedata->layout_main, "idle,state,cue_text,visible", "elm"); } } @@ -681,7 +685,7 @@ void set_animation_state(VoiceData *voicedata) if (voicedata->state == STT_STATE_VAL_INIT) { if(voicedata->effector) voicedata->effector->Stop(true); - + set_cue_text(voicedata); expand_send_text(voicedata); powerLock((void*)voicedata, false);