Browse Source

code cleanup: remove unused speed.loud_consonants

It is set but never used.
master
Juho Hiltunen 4 years ago
parent
commit
74ebdb4126
2 changed files with 0 additions and 9 deletions
  1. 0
    8
      src/libespeak-ng/setlengths.c
  2. 0
    1
      src/libespeak-ng/synthesize.h

+ 0
- 8
src/libespeak-ng/setlengths.c View File

@@ -149,7 +149,6 @@ void SetSpeed(int control)
int wpm_value;
double sonic;

speed.loud_consonants = 0;
speed.min_sample_len = espeakRATE_MAXIMUM;
speed.lenmod_factor = 110; // controls the effect of FRFLAG_LEN_MOD reduce length change
speed.lenmod2_factor = 100;
@@ -195,9 +194,6 @@ void SetSpeed(int control)
if (wpm > espeakRATE_MAXIMUM)
wpm = espeakRATE_MAXIMUM;

if (wpm > 360)
speed.loud_consonants = (wpm - 360) / 8;

wpm2 = wpm;
if (wpm > 359) wpm2 = 359;
if (wpm < espeakRATE_MINIMUM) wpm2 = espeakRATE_MINIMUM;
@@ -281,7 +277,6 @@ void SetSpeed(int control)
int wpm;
int wpm2;

speed.loud_consonants = 0;
speed.min_sample_len = espeakRATE_MAXIMUM;
speed.lenmod_factor = 110; // controls the effect of FRFLAG_LEN_MOD reduce length change
speed.lenmod2_factor = 100;
@@ -295,9 +290,6 @@ void SetSpeed(int control)
if (wpm > espeakRATE_MAXIMUM)
wpm = espeakRATE_MAXIMUM;

if (wpm > 360)
speed.loud_consonants = (wpm - 360) / 8;

wpm2 = wpm;
if (wpm > 359) wpm2 = 359;
if (wpm < espeakRATE_MINIMUM) wpm2 = espeakRATE_MINIMUM;

+ 0
- 1
src/libespeak-ng/synthesize.h View File

@@ -350,7 +350,6 @@ typedef struct {
int lenmod_factor;
int lenmod2_factor;
int min_sample_len;
int loud_consonants;
int fast_settings[8];
} SPEED_FACTORS;


Loading…
Cancel
Save