Change-Id: I7f4e7bfd77f3e059d833025a40dc188e40389aee
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
void show_error_message(VoiceData *voicedata, stt_error_e reason);
void voice_get_string(const char *keyValue, VoiceData *voicedata);
void voice_result_string_flush();
+void ise_stt_stop();
#ifdef __cplusplus
}
}
+void ise_stt_stop()
+{
+ if (my_voicedata != NULL)
+ try {
+ my_voicedata->state = STT_STATE_VAL_INIT;
+ my_voicedata->sttmanager->Stop();
+ }
+ catch (is::stt::SttException &e) {
+ }
+}
+
void send_result_text(void *data)
{
if (!data)
ise_hide();
ime_request_hide();
} else if (event_desc.key_event) {
+ if (g_keyboard_state.layout == ISE_LAYOUT_STYLE_VOICE) {
+ ise_stt_stop();
+ }
ise_send_event(event_desc.key_event, KEY_MASK_NULL);
if (event_desc.key_event == MVK_Shift_L) {
g_need_send_shift_event = TRUE;