mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-11 16:39:15 +00:00
[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:
+6
-2
@@ -1212,8 +1212,11 @@ int Translator::TranslateWord2(char *word, WORD_TAB *wtab, int pre_pause, int ne
|
||||
|
||||
if((option_sayas & 0xf0) == 0x10)
|
||||
{
|
||||
// SAYAS_CHARS, SAYAS_GLYPHS, or SAYAS_SINGLECHARS. Pause between each word.
|
||||
pre_pause += 4;
|
||||
if(!(word_flags & FLAG_FIRST_WORD))
|
||||
{
|
||||
// SAYAS_CHARS, SAYAS_GLYPHS, or SAYAS_SINGLECHARS. Pause between each word.
|
||||
pre_pause += 4;
|
||||
}
|
||||
}
|
||||
|
||||
if(word_flags & FLAG_FIRST_UPPER)
|
||||
@@ -2251,6 +2254,7 @@ if((c == '/') && (langopts.testing & 2) && IsDigit09(next_in) && IsAlpha(prev_ou
|
||||
words[word_count].pre_pause = 8;
|
||||
if(word_count > 0)
|
||||
words[word_count-1].flags |= FLAG_LAST_WORD;
|
||||
words[0].flags |= FLAG_FIRST_WORD;
|
||||
|
||||
for(ix=0; ix<word_count; ix++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user