Closed jeetzz closed 6 years ago
try this:
my $ua = LWP::UserAgent->new(ssl_opts => { _verifyhostname => 1 });
my $ua = LWP::UserAgent->new(ssl_opts => { _verifyhostname => 0 });
On Tue, Dec 29, 2015 at 5:57 PM, chuckycharms notifications@github.com wrote:
Failed to fetch speech data: 403Forbidden at ./googletts-cli.pl line 134.
— Reply to this email directly or view it on GitHub https://github.com/zaf/asterisk-googletts/issues/24#issuecomment-167876200 .
same here...
perl /usr/src/asterisk-googletts/cli/googletts-cli.pl -l de -t "HalloHallo" -o test.wav Failed to fetch speech data: 403Forbidden at /usr/src/asterisk-googletts/cli/googletts-cli.pl line 134.
changing to _verifyhostname => 0 didn't help..
thanks Markus
I have same problem: perl /usr/src/asterisk-googletts/cli/googletts-cli.pl -l en -t "Hello" -o test.wav Failed to fetch speech data: 403Forbidden at /usr/src/asterisk-googletts/cli/googletts-cli.pl line 135.
locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=en_US.UTF-8
May be google has changed algorithm to generate token?
That is interesting... it works here for the same string ('Hello.') with the following request:
In the browser I get the following token: 962743.557405
I managed to get the script working on asterisk for few days, and then on May 11th, it stopped working giving me back the error :
AGI Rx << NOOP " -- googletts.agi: Failed to fetch file: " AGI Tx >> 200 result=0 AGI Rx << NOOP " -- googletts.agi: 403" AGI Tx >> 200 result=0 AGI Rx << NOOP " -- googletts.agi: Forbidden" AGI Tx >> 200 result=0
Did google changed something ? Is there a limit for calling the script ?
Try getting the latest code, there was this fix merged a few days ago: https://github.com/zaf/asterisk-googletts/pull/30
Nice thanks ! I didn't noticed this update.
Is there a way to subscribe to updates like this one ?
I guess by pressing 'Watch' in the project page. Either-way when in doubt use 'git pull'
Hello Zaf!
Thanks again for the work on this. The Dreaded Failed to fetch speech data error has re-surfaced. Any options for an update?
Seems to be working here, tested from 2 different hosts on 2 different networks. Does it fail on all requests, or specific ones? Are you sure you are not blocked by Google by sending too many request? Have you tried from different IPs?
Thanks for the reply! This IP has not yet been used to make a request, but can't be sure if the IP is blocked or not. I have not yet tried from another IP. Is there way you have used to test this other than using a different host?
Its good news its just me, it means theres hope.
Hi,
Getting an error "Failed to fetch speech data. at /usr/bin/googletts-cli.pl line 126." since few days. Just wondering if there's any update that would be coming in soon?
Thanks for your help.