while (cur != NULL) {
if (0 == xmlStrcmp(cur->name, (const xmlChar *)TTS_TAG_CONFIG_ENGINE_ID)) {
+ if (is_default_open) {
+ char* engine_id = vconf_get_str(TTS_ENGINE_DB_DEFAULT);
+ if (engine_id) {
+ SLOG(LOG_DEBUG, TAG_TTSCONFIG, "Set default engine id(%s)", engine_id);
+ strncpy(temp->engine_id, engine_id, sizeof(engine_id) - 1);
+ xmlNodeSetContent(cur, (const xmlChar *)engine_id);
+
+ free(engine_id);
+ engine_id = NULL;
+
+ cur = cur->next;
+ continue;
+ }
+ }
+
key = xmlNodeGetContent(cur);
if (NULL != key) {
strncpy(temp->engine_id, (char*)key, sizeof(g_engine_id) - 1);
return -1;
}
+ char* engine_id = vconf_get_str(TTS_ENGINE_DB_DEFAULT);
+ if (engine_id) {
+ __set_value_into_configuration(TTS_TAG_CONFIG_ENGINE_ID, engine_id);
+ free(engine_id);
+ }
__save_configuration(g_config_doc);
return 0;
<?xml version="1.0"?>
<tts-config>
- <engine>27F277E9-BBC4-4dca-B553-D9884A3CDAA0</engine>
+ <engine>org.tizen.tts-engine-default</engine>
<engine-setting/>
<auto>on</auto>
<language>en_US</language>