mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-14 17:47:19 +00:00
Add support for speechPlayer aspirationAmplitude parameter in voice files.
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user