python-2.7gnome-terminalfestival

Can festival tts's speed of speech be changed?


I want festival tts to read a bit slower, can anyone help me with that? I use python 2.7 and I run the code in gnome-terminal.


Solution

  • What does your ~/.festivalrc look like? To use festival with ALSA, I have:

    (Parameter.set 'Audio_Method 'Audio_Command)
    (Parameter.set 'Audio_Command "aplay -Dplug:default -f S16_LE -r 15000 $FILE")
    

    Using aplay, the rate of playback is determined by the value after the -r flag, which you can increase to make it speak faster, or decrease to make it slower.

    If you're not using ALSA, then adding (Parameter.set 'Duration_Stretch 1.5) or similar may help.