Search

Monday, April 12, 2010

Text-to-speech in asterisk

 

There are many TTS engines for asterisk.  One of them is 'swift' .  We can install swift as below in FC.

 

Login as root

Cd /usr/source

wget http://downloads.cepstral.com/cepstral/i386-linux/Cepstral_Diane-8kHz_i386-linux_5.1.0.tar.gz

 

; we need to install the voice first

gunzip Cepstral_Diane-8kHz_i386-linux_5.1.0.tar.gz

tar xvf Cepstral_Diane-8kHz_i386-linux_5.1.0.tar

cd Cepstral_Diane-8kHz_i386-linux_5.1.0

./install.sh  ; should see the below message

***************************************************************************

****************** Installation Completed Successfully! *******************

***************************************************************************

 

tar xvf app_swift-1.4.2.tar

cd app_swift-1.4.2

make

make install

 

Then we can create a gsm file recognized by asterisk.

swift "Thank you for calling XXXX Technologies Limited" -o welcome.wav

; converting to gsm and put into the asterisk sound location

sox welcome.wav -g welcome.gsm

cp welcome.gsm /var/lib/asterisk/sounds/

 

Note that the free-version of swift automatically puts a license message in each generated file.

 

 

No comments:

Post a Comment