Change-Id: I92785e18c480154f4802500c759ff725c8d116b6
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
SLOG(LOG_WARN, tts_tag(), "[WARNING] Fail to initialize network");
}
+ /* If a new TTS engine is different from the current engine, call ttse_terminate() */
+ if (FALSE == __is_default_engine()) {
+ SLOG(LOG_WARN, tts_tag(), "[WARNING] TTS engine is changed. Please call ttse_terminate()");
+ ttse_terminate();
+ return TTSE_ERROR_NONE;
+ }
+
/* Register vconfkey callback to detect engine change */
vconf_notify_key_changed(TTS_ENGINE_DB_DEFAULT, __engine_changed_cb, NULL);