[asterisk-users] AGI script that uses google's text to speech engine
Kingsley Tart
kingsley at skymarket.co.uk
Thu Dec 1 11:23:59 CST 2011
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
More information about the asterisk-users
mailing list