Browse Source

Typo fixes

master
Valdis Vitolins 8 years ago
parent
commit
640f0d8160
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      src/libespeak-ng/voices.c
  2. 2
    2
      src/libespeak-ng/wavegen.c

+ 1
- 1
src/libespeak-ng/voices.c View File

voice->height[pk] = default_heights[pk]*2; voice->height[pk] = default_heights[pk]*2;
voice->width[pk] = default_widths[pk]*2; voice->width[pk] = default_widths[pk]*2;
voice->breath[pk] = 0; voice->breath[pk] = 0;
voice->breathw[pk] = breath_widths[pk]; // default breath formant woidths
voice->breathw[pk] = breath_widths[pk]; // default breath formant widths
voice->freqadd[pk] = 0; voice->freqadd[pk] = 0;


// adjust formant smoothing depending on sample rate // adjust formant smoothing depending on sample rate

+ 2
- 2
src/libespeak-ng/wavegen.c View File

for (pk = 1; pk < N_PEAKS; pk++) { for (pk = 1; pk < N_PEAKS; pk++) {
if (wvoice->breath[pk] != 0) { if (wvoice->breath[pk] != 0) {
// breath[0] indicates that some breath formants are needed // breath[0] indicates that some breath formants are needed
// set the freq from the current ynthesis formant and the width from the voice data
// set the freq from the current synthesis formant and the width from the voice data
setresonator(&rbreath[pk], peaks[pk].freq >> 16, wvoice->breathw[pk], 0); setresonator(&rbreath[pk], peaks[pk].freq >> 16, wvoice->breathw[pk], 0);
} }
} }
for (h = 1; h < N_LOWHARM && h <= maxh2 && h <= maxh; h++) for (h = 1; h < N_LOWHARM && h <= maxh2 && h <= maxh; h++)
harmspect[h] += harm_inc[h]; harmspect[h] += harm_inc[h];


// bring automctic gain control back towards unity
// bring automatic gain control back towards unity
if (agc < 256) agc++; if (agc < 256) agc++;
} }



Loading…
Cancel
Save