| // eSpeak stores voicing amplitude with 64 representing 100% according to comments in voice.h. | // eSpeak stores voicing amplitude with 64 representing 100% according to comments in voice.h. | ||||
| // speechPlayer uses floating point value of 1 as 100%. | // speechPlayer uses floating point value of 1 as 100%. | ||||
| spFrame->voiceAmplitude=(wvoice->voicing)/64.0; | 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. | // 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->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]; | spFrame->cf2=(eFrame->ffreq[2]*wvoice->freq[2]/256.0)+wvoice->freqadd[2]; |