[1.29.07] Reduce clicks at very low pitches due to numerical overflow in wave generation.

Treat echo-delay = 0 as "no echo", even if ech-amplitude is set.
lang=ru, fix crash for "words" which has produce no phonemes (wg. ":").


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@88 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2007-10-01 09:26:33 +00:00
parent 5671a4bd93
commit ca61663045
28 changed files with 128 additions and 137 deletions
+4 -4
View File
@@ -396,9 +396,9 @@ static void VoiceFormant(char *p)
// Set parameters for a formant
int ix;
int formant;
int freq = -1;
int height = -1;
int width = -1;
int freq = 100;
int height = 100;
int width = 100;
ix = sscanf(p,"%d %d %d %d",&formant,&freq,&height,&width);
if(ix < 2)
@@ -713,7 +713,7 @@ voice_t *LoadVoice(const char *vname, int control)
{
while(isspace(*p)) p++;
n = -1;
if((n = atoi(p)) > 0)
if(((n = atoi(p)) > 0) && (n < 32))
{
p++;
conditional_rules |= (1 << n);