#define TTS_TAG_VOICE_TYPE_MALE "male"
#define TTS_TAG_VOICE_TYPE_CHILD "child"
+#define TTS_MAX_TEXT_SIZE 2000
extern char* tts_tag();
return -1;
}
+ bool isTextsize = false;
xmlDocPtr doc = NULL;
xmlNodePtr cur = NULL;
xmlChar *key = NULL;
SLOG(LOG_ERROR, tts_tag(), "[ERROR] <%s> has no content", TTS_TAG_ENGINE_PITCH_SUPPORT);
}
} else if (0 == xmlStrcmp(cur->name, (const xmlChar *)TTS_TAG_ENGINE_TEXT_SIZE)) {
+ isTextsize = true;
key = xmlNodeGetContent(cur);
if (NULL != key) {
temp->text_size = atoi((char*)key);
cur = cur->next;
}
+ if (false == isTextsize) {
+ temp->text_size = TTS_MAX_TEXT_SIZE;
+ }
+
xmlFreeDoc(doc);
doc = NULL;