mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-01 14:30:37 +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:
|
||||
|
||||
+5
-1
@@ -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
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user