speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: flite configuration


From: Didier Spaier
Subject: Re: flite configuration
Date: Wed, 25 Nov 2020 23:07:21 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0

Salut Nicolas,

On 25/11/2020 19:29, Nicolas Graner wrote:
SPD's "rate" parameter (from -100 to 100) has to be converted to a
"stretch" parameter, where a larger value means slower speech. Since the
generic module only allows linear conversions, I decided to map 0
(normal speed) to 1 and -100 (very slow) to 2, which means +100 (very
fast) maps to 0. This is done with these two parameters:

GenericRateMultiply -1
GenericRateAdd 1

Thanks for the hint! I will update the config file accordingly.

On the other hand, SPD's "pitch" should be mapped to a mean frequency.
Unfortunately, the pitch is relative (-100, to 100) while the frequency
is absolute, and its normal value if different for each voice. I don't
know how a pitch of 0 could be mapped to the normal frequency for each
voice and other values adjusted accordingly.
At the moment I've changed the GenericExecuteSynth command to ignore the
pitch completely, but that's not very satisfactory.

Indeed. Unfortunately I can't help much as I don't know well enough
speech-dispatcher (and I don't use it but for testing, being sighted).

@Samuel maybe you will have some clue? the command in the config file is:

GenericExecuteSynth "flite -voice /usr/share/flite/voices/$VOICE \
--setf duration_stretch=$RATE --setf int_f0_target_mean=$PITCH -t \'$DATA\'"

If I remember well the limitation of the generic module that you
mentioned was rather about the volume setting than the pitch but
I could be wrong, as I am not Donald J. Trump (sorry, I couldn't
resist).

Cheers, Didier



reply via email to

[Prev in Thread] Current Thread [Next in Thread]