Browse Source

Add support for speechPlayer aspirationAmplitude parameter in voice files.

master
datajake1999 4 years ago
parent
commit
073a4188a8
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/libespeak-ng/sPlayer.c

+ 1
- 0
src/libespeak-ng/sPlayer.c View File

@@ -65,6 +65,7 @@ static void fillSpeechPlayerFrame(WGEN_DATA *wdata, voice_t *wvoice, frame_t * e
// eSpeak stores voicing amplitude with 64 representing 100% according to comments in voice.h.
// speechPlayer uses floating point value of 1 as 100%.
spFrame->voiceAmplitude=(wvoice->voicing)/64.0;
spFrame->aspirationAmplitude=(wvoice->breath[1])/64.0;
// All of eSpeak's relative formant frequency ratio values are stored with 256 representing 100% according to comments in voice.h.
spFrame->cf1=(eFrame->ffreq[1]*wvoice->freq[1]/256.0)+wvoice->freqadd[1];
spFrame->cf2=(eFrame->ffreq[2]*wvoice->freq[2]/256.0)+wvoice->freqadd[2];

Loading…
Cancel
Save