[1.29.26] Allow longer echo delay period at the end of speech if the echo strength is > 20.

lang=vi: recognise combining accent characters (for tone accents).
Use a different intonation pattern, with more expression, for sentences which end in exclamation mark.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@112 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2007-12-18 11:57:59 +00:00
parent 22756f15a6
commit 6c7e8ae54f
14 changed files with 620 additions and 173 deletions
+4 -2
View File
@@ -821,9 +821,11 @@ static void WavegenSetEcho(void)
if(delay == 0)
amp = 0;
echo_head = (delay * samplerate)/1000;
echo_length = echo_head; // ensure completion of echo at the end of speech
// echo_length = echo_head * 2; // perhaps allow 2 echo periods at the end of speech ?
echo_length = echo_head; // ensure completion of echo at the end of speech. Use 1 delay period?
if(amp > 20)
echo_length = echo_head * 2; // perhaps allow 2 echo periods if the echo is loud.
// echo_amp units are 1/256ths of the amplitude of the original sound.
echo_amp = amp;