return;
}
DEBUG("SPEAK: %s", text_to_read)
- tts_speak(text_to_read, EINA_TRUE);
-
- tts_state_e state;
- Service_Data *sd = (Service_Data *) user_data;
- tts_get_state(sd->tts, &state);
-
- if (state == TTS_STATE_READY || state == TTS_STATE_PAUSED) {
- int ret = tts_play(sd->tts);
- if (TTS_ERROR_NONE != ret)
- ERROR("Fail to play TTS : ret(%d)", ret);
- } else {
- DEBUG("Current tts state: %d", state);
- }
+ tts_speak(text_to_read, EINA_TRUE);
free(text_to_read);
DEBUG("END")
DEBUG("added id to:%d\n", speak_id);
last_utt_id = speak_id;
+ tts_play(sd->tts);
}
Eina_Bool update_supported_voices(void *data)
txt = eina_strbuf_string_steal(txt_keep_buff);
eina_strbuf_free(txt_keep_buff);
txt_keep_buff = NULL;
-
tts_speak(txt, EINA_FALSE);
- tts_play(sd->tts);
free(txt);
- } else if (current == TTS_STATE_READY || current == TTS_STATE_PAUSED) {
- DEBUG("TTS state == %s!", get_tts_state(current));
- tts_play(sd->tts);
- } else {
- DEBUG("TTS state != ready or paused!\n");
}
}