Google text to speech for asterisk: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
Line 35: | Line 35: | ||
== Install == | == Install == | ||
<pre> | <pre> | ||
wget https://github.com/downloads/zaf/asterisk-googletts/asterisk-googletts-0. | wget https://github.com/downloads/zaf/asterisk-googletts/asterisk-googletts-0.6.tar.gz | ||
tar xvzf asterisk-googletts-0. | tar xvzf asterisk-googletts-0.6.tar.gz | ||
cp asterisk-googletts-0. | cp asterisk-googletts-0.6/googletts.agi /var/lib/asterisk/agi-bin/ | ||
</pre> | </pre> | ||
Revision as of 03:52, 26 March 2012
Here is a nifty little text to speech API for Asterisk using google Voice called Google's text to speech for asterisk
Dependencies
mpg123
wget http://waix.dl.sourceforge.net/project/mpg123/mpg123/1.13.4/mpg123-1.13.4.tar.bz2 tar jxf mpg123-1.13.4.tar.bz2 cd mpg123-1.13.4 ./configure make make install
yum -y install perl perl-libwww-perl sox
CPAN:LWP
Install LWP. For a list of CPAN mirrors
yum -y install perl cpan
perl -MCPAN -eshell
once in the shell type in:
install Bundle::LWP
Install
wget https://github.com/downloads/zaf/asterisk-googletts/asterisk-googletts-0.6.tar.gz tar xvzf asterisk-googletts-0.6.tar.gz cp asterisk-googletts-0.6/googletts.agi /var/lib/asterisk/agi-bin/
Usage
exten => 1234,1,Answer exten => 1234,n,agi(googletts.agi,"Google text to speech for Asteirsk",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