You are on page 1of 3

-:

Festival

Code :
yum install festival

Perl
yum install perl
> Package perl.i386 4:5.8.8-40.el5_9 set to be updated
Updated:
perl.i386 4:5.8.8-40.el5_9
Perl-libwww

yum install perl-libwww-perl


Package perl-libwww-perl-5.805-1.1.1.noarch already installed and latest version
SOX

yum install sox


Package sox-12.18.1-1.el5_5.1.i386 already installed and latest version

MPG123

Descargar MPG123 de http://www.mpg123.de/download.shtml


Version mas reciente: mpg123-1.15.3.tar.bz2 (802.1 kB)
$ bunzip2 mpg123-1.15.3.tar.bz2
$ tar -xvf mpg123-1.15.3.tar
# cd mpg123-1.15.3
$ ./configure
$ make
$ make install

With Festival installed, we need to modify the festival.scm file in order to


enable Asterisk to connect to the Festival server. On both CentOS and Ubuntu, the
file is located in /usr/share/festival/. Open the file and place the following text just
above the last line, (provide 'festival):
(define (tts_textasterisk string mode)
"(tts_textasterisk STRING MODE)
Apply tts to STRING. This function is specifically designed for
use in server mode so a single function call may synthesize the string.
This function name may be added to the server safe functions."
(let ((wholeutt (utt.synth (eval (list 'Utterance 'Text string)))))
(utt.wave.resample wholeutt 8000)
(utt.wave.rescale wholeutt 5)
(utt.send.wave.client wholeutt)))

Open file festival.conf and edit it with under code (etc/asterisk/festival.conf )

[general]
host=localhost
port=1314
usecache=yes
cachedir=/var/cache/asterisk/festival/
festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n

Now you can make your tts


Add this below code und the first line of [from-internal-custom]
exten => 500,1,Answer()
exten =>500,n,wait(3)
exten => 500,n,Festival( This file contains the contexts the agents login for the
module call center )
exten =>500,n,wait(3)
exten =>500,n,Hangup()

You might also like