[asterisk-users] AGI script that uses google's text to speech engine

Danny Nicholas danny at debsinc.com
Thu Dec 1 11:35:21 CST 2011


I personally don't like the use of mpg123 for playback - would prefer use of
the internal "Playback/background" functions.  Still seems to be a nice
effort though.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Kingsley Tart
Sent: Thursday, December 01, 2011 11:24 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] AGI script that uses google's text to speech
engine

Hi. Aside from converting spaces to plus signs, you don't encode any special
characters before putting them in the URL. It might be safer to run $line
through some sort of encoding before calling Google with it, even if most
special characters probably don't result in any sound.
Google say "and" if you give it an ampersand, but unescaped you couldn't
include that in the string.

You may decide to have an option to locally cache pre-produced sound files
in case that phrase is used again.

Cheers,
Kingsley.

On Thu, 2011-12-01 at 02:42 +0200, Lefteris Zafiris wrote:
> Hello,
> I have written an AGI script for asterisk that uses google translate 
> for text to speech synthesis.
> It supports a variety of different languages, local caching for the 
> voice data and wideband audio.
> The voice in most languages is female and the quality of the 
> synthesized speech is very high.
> More info about the script can be found here:
> http://zaf.github.com/asterisk-googletts/
> the first public release ca be obtained here:
> https://github.com/downloads/zaf/asterisk-googletts/asterisk-googletts
> -0.2.tar.gz
> 
> To get a sample of the speech synthesis quality try this link:
> http://translate.google.com/translate_tts?tl=en&q=this+is+a+test+for
> +google+text+to+speech+engine
> 
> The code is still very young so suggestions, comments and bug reports 
> are more than welcome.
> 
> --------------
> Lefteris Zafiris
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- 
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list