Google text to speech for asterisk: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
Line 10: | Line 10: | ||
'''or''' | '''or''' | ||
<pre> | <pre> | ||
wget http://waix.dl.sourceforge.net/project/mpg123/mpg123/1. | wget http://waix.dl.sourceforge.net/project/mpg123/mpg123/1.14.4/mpg123-1.14.4.tar.bz2 | ||
tar jxf mpg123-1. | tar jxf mpg123-1.14.4.tar.bz2 | ||
cd mpg123-1. | cd mpg123-1.14.4 | ||
./configure | ./configure | ||
make | make |
Revision as of 04:26, 9 April 2013
Here is a nifty little text to speech API for Asterisk using google Voice called Google's text to speech for asterisk
Dependencies
mpg123
rpm -Uhv http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm yum -y install mpg123
or
wget http://waix.dl.sourceforge.net/project/mpg123/mpg123/1.14.4/mpg123-1.14.4.tar.bz2 tar jxf mpg123-1.14.4.tar.bz2 cd mpg123-1.14.4 ./configure make make install
yum -y install perl perl-libwww-perl sox cpan
CPAN:LWP
Install LWP. For a list of CPAN mirrors
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e "install Bundle::LWP" PERL_MM_USE_DEFAULT=1 perl -MCPAN -e "install CGI::Util"
Install
wget https://github.com/zaf/asterisk-googletts/blob/master/googletts.agi mv googletts.agi /var/lib/asterisk/agi-bin/ chmod 755 /var/lib/asterisk/agi-bin/googletts.agi
Usage
exten => 1234,1,Answer exten => 1234,n,agi(googletts.agi,"Google text to speech for Asterisk",en) exten => 1234,n,agi(googletts.agi,"has been successfully installed.",en) exten => 1234,n,agi(googletts.agi,"Hip Hip Hooray",en) exten => 1234,n,HangUp