[1.30.10]

Remove pause before <say-as> if it's at the beginning of a sentence.
Added --split=<minutes>  command-line option. Splits output WAV file (at sentence boundaries).
Fix: espeakEVENT_SENTENCE events were missing.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@121 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2008-01-13 14:45:58 +00:00
parent d3fb0cf9b2
commit 38063c4eea
38 changed files with 880 additions and 403 deletions
+9
View File
@@ -67,6 +67,7 @@
#define tVOWELOUT 23
#define tAPPENDPH 24 // always insert another phoneme (linkout) after this one
#define tIMPORTPH 25
#define tBEFOREPAUSE 26
#define tPHONEMENUMBER 29
#define tPHONEMETABLE 30
@@ -238,6 +239,7 @@ static keywtab_t keywords[] = {
{"vowelout",23},
{"appendph",24},
{"import_phoneme",25},
{"beforepause",26},
// flags
{"wavef", 0x2000000+phWAVE},
@@ -1389,6 +1391,13 @@ int Compile::CPhoneme()
ph->alternative_ph = phcode;
break;
case tBEFOREPAUSE:
ph->phflags |= phBEFOREPAUSE;
if((phcode = NextItem(tPHONEMEMNEM)) == -1)
phcode = LookupPhoneme(item_string,1);
ph->link_out = phcode;
break;
case tAPPENDPH:
ph->phflags |= phAPPENDPH; // drop through to tLINKOUT
case tLINKOUT: