login | register
Fri 05 of Sep, 2008 [23:44 UTC]

voip-info.org

History

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.

  1. cd /tmp
  2. wget http://asterisk-flite.sourceforge.net/extras/flite-1.3-sharedlibs.patch
  3. wget http://asterisk-flite.sourceforge.net/extras/flite-1.3-alsa_support.patch
  4. wget http://www.speech.cs.cmu.edu/flite/packed/flite-1.3/flite-1.3-release.tar.gz
  5. wget http://kent.dl.sourceforge.net/sourceforge/asterisk-flite/asterisk-flite-0.5.tar.gz
  6. tar -zxvf flite-1.3-release.tar.gz
  7. rm -f flite-1.3-release.tar.gz
  8. cd flite-1.3-release
  9. patch -p1 < ../flite-1.3-sharedlibs.patch
  10. patch -p1 < ../flite-1.3-alsa_support.patch
  11. ./configure --enable-shared
  12. make
  13. make install
  14. cd ../
  15. tar -xzvf asterisk-flite-0.5.tar.gz
  16. rm -f asterisk-flite-0.5.tar.gz
  17. mv asterisk-flite-0.5 flite-1.3-release/
  18. cd flite-1.3-release/asterisk-flite-0.5
  19. make
  20. make install
    1. Verify that there is now a app_flite.so file in /usr/lib/asterisk/modules/
  21. nano /etc/ld.so.conf
    1. make sure that /usr/local/lib is in there. Add it if need be and save file.
  22. ldconfig
  23. asterisk -rx 'restart now'
  24. asterisk -r
    1. 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



Comments

Comments Filter
222

333Same issue...

by jbassett, Sunday 04 of May, 2008 [13:30:07 UTC]
I too have compiled and make installed but have the not found 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
222

333Can't get Flite registered

by rbdnz, Friday 02 of May, 2008 [22:26:35 UTC]
Hi,
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!
222

333

by skin256, Tuesday 11 of March, 2008 [20:56:42 UTC]
Hello and thanks for the guide, I followed these intructions and cannot get Flite registered.

This is a vanilla 1.4.18 install on CentOS.

  • CLI> core show application Flite
Your application(s) is (are) not registered

ls -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

222

333

by faucamp, Tuesday 12 of February, 2008 [09:53:12 UTC]
Deon, thank you for creating this page. I have now moved the asterisk-flite module to its own project on SourceForge with (hopefully) complete instructions on how to get it working (also updated this page somewhat).
222

333

by glitchsys, Thursday 04 of October, 2007 [06:38:34 UTC]
I created this page because I could not find clear/concise directions on how to install Flite. I kept finding off-wiki links and they kept referencing rpm's and asterisk-at-home or whatever they call it now. I prefer Gentoo and generally I prefer doing things manually, not rpm's. So after piecing together information from various sites, I got it working on my systems so I put my method of madness on this wiki page in hopes that it will help others.