mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
[1.38]
SSML, Fix <prosody rate= > git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@187 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+9
-2
@@ -1747,14 +1747,21 @@ static int ProcessSsmlTag(wchar_t *xml_buf, char *outbuf, int &outix, int n_outb
|
||||
return(CLAUSE_VOICE);
|
||||
|
||||
case SSML_SPEAK + SSML_CLOSE:
|
||||
terminator = CLAUSE_PERIOD;
|
||||
// unwind stack until the previous <voice> or <speak> tag
|
||||
while((n_ssml_stack > 1) && (ssml_stack[n_ssml_stack-1].tag_type != SSML_SPEAK))
|
||||
{
|
||||
n_ssml_stack--;
|
||||
}
|
||||
return(CLAUSE_PERIOD + GetVoiceAttributes(px, tag_type));
|
||||
|
||||
case SSML_VOICE + SSML_CLOSE:
|
||||
// unwind stack until the previous <voice> or <speak> tag
|
||||
while((n_ssml_stack > 1) && (ssml_stack[n_ssml_stack-1].tag_type != (tag_type - SSML_CLOSE)))
|
||||
while((n_ssml_stack > 1) && (ssml_stack[n_ssml_stack-1].tag_type != SSML_VOICE))
|
||||
{
|
||||
n_ssml_stack--;
|
||||
}
|
||||
|
||||
terminator=0; // ?? Sentence intonation, but no pause ??
|
||||
return(terminator + GetVoiceAttributes(px, tag_type));
|
||||
|
||||
case HTML_BREAK:
|
||||
|
||||
Reference in New Issue
Block a user