Asterisk Flite
Created by: glitchsys,Last modification on Mon 04 of Aug, 2008 [16:01 UTC] by dmsessions
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
Comments
333Same issue...
At the Asterisk CLI, if I tab out:
module load app_ it finds app_flite.so and completes the line so it is looking in the correct directory. If I press enter I then get...
May 4 14:01:24 WARNING17671: loader.c:644 load_resource: Module 'app_flite.so' could not be loaded.
Jason
333Can't get Flite registered
I have the same problem Jeremy has, where after going through the procedure Flite doesn't show as registered in Asterisk.
I'm using 1.4.11. My printouts are exactly like his.
Has anyone found a work around?
Thanks!
333
This is a vanilla 1.4.18 install on CentOS.
- CLI> core show application Flite
Your application(s) is (are) not registeredls -Al /usr/lib/asterisk/modules/app_flite.so
-rwxr-xr-x 1 root root 28354 Mar 11 11:29 /usr/lib/asterisk/modules/app_flite.so
cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
include /usr/local/lib
include /usr/lib
ldd /usr/lib/asterisk/modules/app_flite.so
linux-gate.so.1 => (0x00489000)
libm.so.6 => /lib/libm.so.6 (0x00b6c000)
libflite.so.1 => not found
libflite_cmulex.so.1 => not found
libflite_usenglish.so.1 => not found
libflite_cmu_us_kal.so.1 => not found
libc.so.6 => /lib/libc.so.6 (0x00887000)
/lib/ld-linux.so.2 (0x009db000)
Any help would be greatly appreciated.
EDIT: Tried following the http://asterisk-flite.sourceforge.net/ guide and it fails at make install.
make install
Installing
mkdir -p /usr/local/bin
mkdir -p /usr/local/lib
mkdir -p /usr/local/include/flite
/usr/bin/install -c -m 644 include/*.h /usr/local/include/flite
tar: libflite.so: Cannot stat: No such file or directory
tar: libflite_cmulex.so: Cannot stat: No such file or directory
tar: libflite_usenglish.so: Cannot stat: No such file or directory
tar: libflite_cmu_us_kal.so: Cannot stat: No such file or directory
tar: libflite_cmu_us_kal16.so: Cannot stat: No such file or directory
tar: libflite_cmu_time_awb.so: Cannot stat: No such file or directory
tar: libflite.so.1.3: Cannot stat: No such file or directory
tar: libflite_cmulex.so.1.3: Cannot stat: No such file or directory
tar: libflite_usenglish.so.1.3: Cannot stat: No such file or directory
tar: libflite_cmu_us_kal.so.1.3: Cannot stat: No such file or directory
tar: libflite_cmu_us_kal16.so.1.3: Cannot stat: No such file or directory
tar: libflite_cmu_time_awb.so.1.3: Cannot stat: No such file or directory
tar: libflite.so.1: Cannot stat: No such file or directory
tar: libflite_cmulex.so.1: Cannot stat: No such file or directory
tar: libflite_usenglish.so.1: Cannot stat: No such file or directory
tar: libflite_cmu_us_kal.so.1: Cannot stat: No such file or directory
tar: libflite_cmu_us_kal16.so.1: Cannot stat: No such file or directory
tar: libflite_cmu_time_awb.so.1: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
/usr/bin/install -c -m 755 bin/flite /usr/local/bin
/usr/bin/install: cannot stat `bin/flite': No such file or directory
make: *** install Error 1
333
333