1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FYI GoogleTTS Returns from the Dead.. Again

Discussion in 'Today's Tech News & Events' started by wardmundy, Jul 29, 2015.

  1. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    13,825
    Likes Received:
    2,293
    Sad news, I'm afraid...

    From Patrick Archibald: "Google is now redirecting command line requests to their text-to-speech tool to a CAPTCHA page. "

    [​IMG]
     
  2. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    13,825
    Likes Received:
    2,293
    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:
     
    #2 wardmundy, Jul 29, 2015
    Last edited: Nov 2, 2015
    Ash Batman and Trimline2 like this.
  3. Trimline2

    Trimline2 Guru

    Joined:
    May 23, 2013
    Messages:
    490
    Likes Received:
    89
    Patch works like a charm... thanks to all!
     
  4. chris_c_

    chris_c_ Active Member

    Joined:
    Aug 19, 2010
    Messages:
    399
    Likes Received:
    57
    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 ?
     
    cloudsifter likes this.
  5. Mark Thompson

    Mark Thompson New Member

    Joined:
    Dec 29, 2014
    Messages:
    29
    Likes Received:
    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
     
  6. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    13,825
    Likes Received:
    2,293
    Try the one in: /var/lib/asterisk/agi-bin/googletts-cli.pl
     
  7. davea

    davea New Member

    Joined:
    Jan 21, 2010
    Messages:
    13
    Likes Received:
    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
     
  8. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    13,825
    Likes Received:
    2,293
  9. ladiko

    ladiko New Member

    Joined:
    Oct 31, 2015
    Messages:
    4
    Likes Received:
    2
    chris_c_ and wardmundy like this.
  10. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    13,825
    Likes Received:
    2,293
    chris_c_ likes this.
  11. davea

    davea New Member

    Joined:
    Jan 21, 2010
    Messages:
    13
    Likes Received:
    7
    Awesome; latest patch worked and googletts is back. Thank you very much everybody!! Dave
     
    chris_c_ and wardmundy like this.
  12. davea

    davea New Member

    Joined:
    Jan 21, 2010
    Messages:
    13
    Likes Received:
    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.
     
  13. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    13,825
    Likes Received:
    2,293
  14. Jay Deal

    Jay Deal Phhhhhhhhttttttt :)

    Joined:
    Dec 26, 2013
    Messages:
    265
    Likes Received:
    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?
     
  15. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    13,825
    Likes Received:
    2,293
    GoogleTTS reportedly has been restored to the living. Just reapply the patch above.
     
  16. GlenC

    GlenC New Member

    Joined:
    Dec 25, 2015
    Messages:
    17
    Likes Received:
    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.
     
  17. davea

    davea New Member

    Joined:
    Jan 21, 2010
    Messages:
    13
    Likes Received:
    7
    Yes, me. I tried to reapply patch (twice), but still no luck ...
     
  18. Trimline2

    Trimline2 Guru

    Joined:
    May 23, 2013
    Messages:
    490
    Likes Received:
    89
    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 [444@from-internal:1] Answer("SIP/14301-00000003", "") in new stack
    [2016-01-05 16:34:25] VERBOSE[2954][C-00000003] pbx.c: -- Executing [444@from-internal:2] Wait("SIP/14301-00000003", "1") in new stack
    [2016-01-05 16:34:26] VERBOSE[2954][C-00000003] pbx.c: -- Executing [444@from-internal: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 [444@from-internal:4] Wait("SIP/14301-00000003", "2") in new stack
    [2016-01-05 16:34:31] VERBOSE[2954][C-00000003] pbx.c: -- Executing [444@from-internal: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 [444@from-internal:1] Answer("SIP/14301-00000027", "") in new stack
    [2016-01-06 07:45:54] VERBOSE[19580][C-0000000b] pbx.c: -- Executing [444@from-internal:2] Wait("SIP/14301-00000027", "1") in new stack
    [2016-01-06 07:45:55] VERBOSE[19580][C-0000000b] pbx.c: -- Executing [444@from-internal: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 [444@from-internal:4] Wait("SIP/14301-00000027", "2") in new stack
    [2016-01-06 07:45:58] VERBOSE[19580][C-0000000b] pbx.c: -- Executing [444@from-internal: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 [h@from-internal: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
     
  19. Jose Casares

    Jose Casares Member

    Joined:
    Mar 21, 2016
    Messages:
    35
    Likes Received:
    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
     
  20. Jose Casares

    Jose Casares Member

    Joined:
    Mar 21, 2016
    Messages:
    35
    Likes Received:
    2
    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
     

Share This Page