Flite (festival-lite) is a small, fast open source text to speech synthesis engine developed at CMU and primarily designed for small embedded machines and/or large servers. Flite is designed as an alternative text to speech synthesis engine to Festival for voices built using the FestVox suite of voice building tools.
Flite is also included in the Debian package library so installation is similar too Festival. At the command prompt type:
sudo apt-get install flite
And you should see something like:
You are now set to try it out. For simple text, use text after the -t flag:
flite -t "All good men come to the aid of the rebellion"
and you can have flite speak the contents of a file with -f
flite -f jefferson-inaugural.txt
Sounds pretty good, eh?
You are not limited to the default voice. If you type
you get a list of available voices like this:
To use a different voice, use the -voice flag followed by one of the voices in the listing
flite -voice awb -t "The Raspberry Pi is a great Maker platform!"
The voices available as of this tutorial are:
- US English Male RMS
- US English Male JMK
- US English Male BDL
- US English Male AEW
- US English Female SLT
- US English Female CLB
- US English Female LJM
- US English Female EEY
- US English (Scottish accent) Male AWB
- US English (German accent) Male AHW
- US English (German accent) Male FEM
- US English Male RXR
- Indian English Male AUP
- Indian English Male GKA
- Indian English Male KSP
- Indian English Female AXB
If you would like one of the voices listed but not installed by default, they can be downloaded from the Flite website.