search

Loading

Thursday, June 27, 2013

Install flite (festival lite) text to speech system in linux

Flite is text to speech engine for linux. It is based on festival speech synthesis system. Most of the linux sytems comes with flite in its package manager. It's just a apt-get on debian based or yum install in rpm based systems.

For example, you can install it on centos with below command:


yum install flite-devel

If it is not available in your system, you can compile and install it.

1.   Download Flite 1.3

wget http://www.speech.cs.cmu.edu/flite/packed/flite-1.3/flite-1.3-release.tar.gz

2.   Download patch to enable Flite 1.3 to build shared libraries and save it in the same directory as flite-1.3-release.tar.gz


wget http://asterisk-flite.sourceforge.net/extras/flite-1.3-sharedlibs.patch

  3.  Download patch to enable ALSA support for Flite 1.3 and save it in the same directory as the previous patch file

wget http://asterisk-flite.sourceforge.net/extras/flite-1.3-alsa_support.patch

 4.   In a terminal, go to the directory where the files were saved

     Extract flite:

    tar -xzvf flite-1.3-release.tar.gz

  5. Change to the extracted flite directory:

    cd flite-1.3-release

  6.  Apply the patches:

    patch -p1 < ../flite-1.3-sharedlibs.patch

    patch -p1 < ../flite-1.3-alsa_support.patch


   7.  Apply the patches:

    patch -p1 < ../flite-1.3-sharedlibs.patch

    patch -p1 < ../flite-1.3-alsa_support.patch


   8. Configure & compile flite:

    ./configure --enable-shared --with-audio=alsa

    make

   9. Install flite to the system:

    su -c 'make install'

















Reference: http://asterisk-flite.sourceforge.net/

No comments :

Post a Comment