FYI GoogleTTS Returns from the Dead.. Again

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
15,251
Reaction score
2,670
In record time, here's the patch from Lefteris Zafiris aka lzaf. Updated for 10.31.2015 patch:
Code:
cd /tmp
rm -rf asterisk-googletts
git clone https://github.com/zaf/asterisk-googletts.git
cd asterisk-googletts
chown asterisk:asterisk goo*
sed -i 's|speed = 1|speed = 1.3|' googletts.agi
cp -p goo* /var/lib/asterisk/agi-bin/.
cd cli
chown asterisk:asterisk goo*
cp -p goo* /var/lib/asterisk/agi-bin/.
:party::party::party:
 
Last edited:

chris_c_

Active Member
Joined
Aug 19, 2010
Messages
509
Reaction score
67
How does one get this working on IPBX 13-12 Ubuntu 14.04 exactly?!
Went into the page "Admin / Module Admin / Check Online / TExt to speech" and it complains "The Module Named ttsengines is required", and the "More info" documentation link leads to a missing page on freepbx.org
NOTE I remember auto installing ttsengines right inside this Module Admin page, in an ancient "Green" version of PIAF/IPBX but that was about 3 years ago, and much has changed, the google API appears to have been revoked and then soon after, reinstated!

Where to obtain ttsengines?
How to install it in IPBX 13-12 and get it working so it could read IVR text prompts to the caller without having to render wav's and upload them well in advance ?
 
  • Like
Reactions: cloudsifter

Mark Thompson

New Member
Joined
Dec 29, 2014
Messages
29
Reaction score
4
Came across the same problem, found this patch and applied, still no joy. Still getting

/usr/local/sbin/googletts-cli.pl: Failed to fetch speech data. at /usr/local/sbin/googletts-cli.pl line 169.
Do you think google has thwarted this patch?
Tx,
mark
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
15,251
Reaction score
2,670
Try the one in: /var/lib/asterisk/agi-bin/googletts-cli.pl
 

davea

New Member
Joined
Jan 21, 2010
Messages
13
Reaction score
7
Hi Wardmundy; I have the very same issue. Tried to apply the patch but still not woking; also tried the one in: /var/lib/asterisk/agi-bin/googletts-cli.pl but I get same error: Failed to fetch speech data. at ./googletts-cli.pl line 126. Any suggestion? Thanks in advance. Dave
 

davea

New Member
Joined
Jan 21, 2010
Messages
13
Reaction score
7
And we're back with the same problem ... Today googletts is not working anymore, again :-( It think it would be better to move to a different TTS, but I need it to pronounce italian words, and there's no tts engine like googletts that works the same way as far I as know.
 

Jay Deal

Phhhhhhhhttttttt :)
Joined
Dec 26, 2013
Messages
267
Reaction score
85
Amazon's IVONA looks like it could be made into a substitute and they offer a free tier of service for developers. More info here: https://www.ivona.com/us/.

Speaking of Amazon, @nerduno mentioned something a few months ago about him working with Amazon on phone service for the Echo device. That ever go anywhere?
 

GlenC

New Member
Joined
Dec 25, 2015
Messages
19
Reaction score
5
Is anyone else getting this error?
Failed to fetch speech data: 403Forbidden at ./googletts-cli.pl line 134.

I've installed the patch and configured as above but, no go.
 

davea

New Member
Joined
Jan 21, 2010
Messages
13
Reaction score
7
Yes, me. I tried to reapply patch (twice), but still no luck ...
 

Trimline2

Guru
Joined
May 23, 2013
Messages
525
Reaction score
95
Location
Orlando, FL
Interesting. I have 2 servers with the same code, one works fine, the other does not create the /tmp file. I extracted the sample code from the patch, here's what I see. I'll dig a bit further, but I suspect it may have to do with the sample rate. Both machines worked at one time... they are both running the same Goog* components.

Works okay:
Code:
[2016-01-05 16:34:25] VERBOSE[2954][C-00000003] pbx.c: -- Executing [[email protected]:1] Answer("SIP/14301-00000003", "") in new stack
[2016-01-05 16:34:25] VERBOSE[2954][C-00000003] pbx.c: -- Executing [[email protected]:2] Wait("SIP/14301-00000003", "1") in new stack
[2016-01-05 16:34:26] VERBOSE[2954][C-00000003] pbx.c: -- Executing [[email protected]:3] AGI("SIP/14301-00000003", "googletts.agi,"This is a simple google text to speech test in english.",en") in new stack
[2016-01-05 16:34:26] VERBOSE[2954][C-00000003] res_agi.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/googletts.agi
[2016-01-05 16:34:27] VERBOSE[2954][C-00000003] res_agi.c: -- Playing '/tmp/07f05fb00dac938b167c2187b20ac4cb' (escape_digits=) (sample_offset 0)
[2016-01-05 16:34:29] VERBOSE[2954][C-00000003] res_agi.c: -- <SIP/14301-00000003>AGI Script googletts.agi completed, returning 0
[2016-01-05 16:34:29] VERBOSE[2954][C-00000003] pbx.c: -- Executing [[email protected]:4] Wait("SIP/14301-00000003", "2") in new stack
[2016-01-05 16:34:31] VERBOSE[2954][C-00000003] pbx.c: -- Executing [[email protected]:5] Hangup("SIP/14301-00000003", "") in new stack
No /tmp created
Code:
[2016-01-06 07:45:54] VERBOSE[19580][C-0000000b] pbx.c: -- Executing [[email protected]:1] Answer("SIP/14301-00000027", "") in new stack
[2016-01-06 07:45:54] VERBOSE[19580][C-0000000b] pbx.c: -- Executing [[email protected]:2] Wait("SIP/14301-00000027", "1") in new stack
[2016-01-06 07:45:55] VERBOSE[19580][C-0000000b] pbx.c: -- Executing [[email protected]:3] AGI("SIP/14301-00000027", "googletts.agi,"This is a simple google text to speech test in english.",en") in new stack
[2016-01-06 07:45:55] VERBOSE[19580][C-0000000b] res_agi.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/googletts.agi
[2016-01-06 07:45:56] VERBOSE[19580][C-0000000b] res_agi.c: -- <SIP/14301-00000027>AGI Script googletts.agi completed, returning 0
[2016-01-06 07:45:56] VERBOSE[19580][C-0000000b] pbx.c: -- Executing [[email protected]:4] Wait("SIP/14301-00000027", "2") in new stack
[2016-01-06 07:45:58] VERBOSE[19580][C-0000000b] pbx.c: -- Executing [[email protected]:5] Hangup("SIP/14301-00000027", "") in new stack
[2016-01-06 07:45:58] VERBOSE[19580][C-0000000b] pbx.c: == Spawn extension (from-internal, 444, 5) exited non-zero on 'SIP/14301-00000027'
[2016-01-06 07:45:58] VERBOSE[19580][C-0000000b] pbx.c: -- Executing [[email protected]:1] Hangup("SIP/14301-00000027", "") in new stack
[2016-01-06 07:45:58] VERBOSE[19580][C-0000000b] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/14301-00000027'
Version
x PIAF Installed Version = 2.0.6.5 under *HARDWARE*
x FreePBX Version = 2.11.0.43 x
x Running Asterisk Version = 11.10.0
 

Jose Casares

Member
Joined
Mar 21, 2016
Messages
35
Reaction score
2
I installed the patch but can anybody tell me how to use it? Sorry I'm a newbie. Thanks in advance.


PIAF 3.0.6.7
FreePBX Ver: 2.11.1.43
Running Asterisk Version: 11.16.0
Operating Sys: CentOS 6.7
 

Jose Casares

Member
Joined
Mar 21, 2016
Messages
35
Reaction score
2
GoogleTTS reportedly has been restored to the living. Just reapply the patch above.
I installed the patch but can anybody tell me how to use it? Sorry I'm a newbie. I tried to update TTS Module and got this error.

Module Administration
Errors with selection:
  • Text To Speech cannot be installed:
    • Module ttsengines is required.
    Please try again after the dependencies have been installed.
No actions to perform
Thanks in advance.
Jose Casares




PIAF 3.0.6.7
FreePBX Ver: 2.11.0.43
Running Asterisk Version: 11.22.0
Operating Sys: CentOS 6.7
 

Members online

No members online now.

PIAF 5 - Powered by 3CX

Forum statistics

Threads
22,461
Messages
138,092
Members
14,621
Latest member
Mac-Gayver