- Shows
- Channels
- Deals
- Social
- Inside Revision3
- Shop
Exit Theater Mode
Login or register to enable this feature.
Or, compose an email to send yourself.
Download this episode
Embed or link to this episode
Free Text to Speech with Linux
Saturday, February 18th, 2012 running time 10:56
In this HakTip, we're setting up Festival for the GUI in Linux.
Festival is a multi-lingual speech synthesis system. It was originally developed by Alan Black at the Centre for Speech Technology Research at the University of Edinburgh and additional contributions have been made by Carnegie Mellon University.
It sports a text to speech API, among others, and a command interface for extensions. The system supports English (both British and American) as well as Welsh and Spanish. You can also find packages for Finnish, Polish and Russian to name a few. And if that wasn't enough, the whole lot of it is published under the BSD license - meaning it's free and open source.
To get started we'll need a few packages: Obviously first we'll need festival and xsel.
cat << eof > talk.sh #!/bin/bash xsel | festival --tts --pipe eof cmod +x ~/tts.shNext bind mod4+z to ~/talk.sh. From Ubuntu key bindings are found under System, Preferences, Keyboard Shortcuts
If you run into the error Linux: can't open /dev/dsp
echo " (Parameter.set 'Audio_Command "aplay -q -c 1 -t raw -f s16 -r $SR $FILE") (Parameter.set 'Audio_Method 'Audio_Command) " >> ~/.festivalrcThe speech rate can be configured in /usr/share/festival/voices/english/kal_diphone/festvox/kal_diphone.scm under the setting "Parameter.set 'Duration_Stretch" -- the lower the value the faster the speech rate.
>So that leads me to ask, what programs, commands or scripts are rocking your world? Hit us up -- tips@hak5.org, or simply leave a comment below.
And be sure to check out our sister show, Hak5 for more great stuff just like this.







