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:
jonsd
2008-08-22 23:12:35 +00:00
parent e312283d22
commit 37ded768c9
21 changed files with 122 additions and 183 deletions
+9 -2
View File
@@ -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:
+5 -1
View File
@@ -113,7 +113,11 @@ void SetSpeed(int control)
int wpm;
int wpm2;
wpm2 = wpm = embedded_value[EMBED_S];
wpm = embedded_value[EMBED_S];
if(control == 2)
wpm = embedded_value[EMBED_S2];
wpm2 = wpm;
if(wpm > 369) wpm = 369;
if(wpm < 80) wpm = 80;
+2 -2
View File
@@ -35,8 +35,8 @@
#include "translate.h"
#include "wave.h"
const char *version_string = "1.37.14 20.Aug.08";
const int version_phdata = 0x013400;
const char *version_string = "1.38 22.Aug.08";
const int version_phdata = 0x013800;
int option_device_number = -1;