Asterisk Flite
Install Flite and asterisk-flite (non-rpm method)
Flite (festival-lite) is a small, fast run-time synthesis engine developed at CMU and primarily designed for small embedded machines and/or large servers. Flite is designed as an alternative synthesis engine to Festival for voices built using the FestVox suite of voice building tools.
asterisk-flite is a Flite text-to-speech module for the Asterisk open-source PBX. This provides the "Flite" dialplan application, which allows you to use the Flite TTS Engine with Asterisk. It invokes the Flite TTS engine locally via the Flite C API, and uses it to render text to speech.
Please refer to the asterisk-flite project's web page at: http://asterisk-flite.sourceforge.net for the latest instructions.
- cd /tmp
- wget http://asterisk-flite.sourceforge.net/extras/flite-1.3-sharedlibs.patch
- wget http://asterisk-flite.sourceforge.net/extras/flite-1.3-alsa_support.patch
- wget http://www.speech.cs.cmu.edu/flite/packed/flite-1.3/flite-1.3-release.tar.gz
- wget http://kent.dl.sourceforge.net/sourceforge/asterisk-flite/asterisk-flite-0.5.tar.gz
- tar -zxvf flite-1.3-release.tar.gz
- rm -f flite-1.3-release.tar.gz
- cd flite-1.3-release
- patch -p1 < ../flite-1.3-sharedlibs.patch
- patch -p1 < ../flite-1.3-alsa_support.patch
- ./configure --enable-shared
- make
- make install
- cd ../
- tar -xzvf asterisk-flite-0.5.tar.gz
- rm -f asterisk-flite-0.5.tar.gz
- mv asterisk-flite-0.5 flite-1.3-release/
- cd flite-1.3-release/asterisk-flite-0.5
- make
- make install
- Verify that there is now a app_flite.so file in /usr/lib/asterisk/modules/
- nano /etc/ld.so.conf
- make sure that /usr/local/lib is in there. Add it if need be and save file.
- ldconfig
- asterisk -rx 'restart now'
- asterisk -r
- show application Flite
If all goes well you should have Flite support. Tested on 2 of my Gentoo systems.
Test asterisk-flite
To test it, I simply put it in your extensions.conf file:exten => 123,1,Flite(this is a test. this is only a test. if this had been an actual emergency, you would be dead.)
And then try calling 123 or whatever extension you set it to.
See also
- app_flite for Asterisk 1.6.x
- Flite tutorial with Asterisk@Home
- Flite news
- Festival
- Asterisk festival installation
- TTS: Text-to-Speech solutions
- asterisk-agi-audiotx: AGI extension module that adds commands to allow the transfer of audio files to and from Asterisk via an AGI session
- asterisk-espeak: dialplan application providing speech synthesis using the eSpeak text-to-speech engine
Created by: glitchsys,Last modification on Mon 04 of Aug, 2008 [16:01 UTC] by dmsessions

Page Changes

