hi i had googletts working for two years.
my setup is freepbx version 12.0.76.1 with asterisk Ver. 11.16.0
now, even with the updated script it gives me errors.
this is the output if i use googletts.agi
[root@localhost agi-bin]# perl googletts.agi -o hello.wav -l it -t "Hello world"
Use of uninitialized value $AGI{"request"} in concatenation (.) or string at googletts.agi line 95, line 1.
-- : Invalid language setting. Using default.
CHANNEL STATUS
-- : Unexpected result:
GET FULL VARIABLE ${CHANNEL(audionativeformat)}
-- : Unexpected result:
-- : Failed to fetch file.
this one is the one using the googletts-cli.pl which is the file i used before
[root@localhost agi-bin]# ./googletts-cli.pl -o hello.wav -l en -t "Hello world"
Failed to fetch speech data. at ./googletts-cli.pl line 126.
i can manually download the tts file with this command
wget -q -U Mozilla -O output.mp3 "http://translate.google.com/translate_tts?ie=UTF-8&client=t&tl=it&q= hello world"