mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-02 22:07:12 +00:00
[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:
+4
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user