Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Google Translate API text-to-speech: http requests forbidden


Question

Posted

Dear, team Fibaro and people. 

 

I have problem today with SONOS and HC2 TTS.

 

Google TTS not work more, It;'s banned IP or have captcha.

 

And request from HC2 Lua virtual device not work.

 

Please help me, can you give me code for example play file or http link .mp3

 

Thank you. 

 

 

Please login or register to see this attachment.

14 answers to this question

Recommended Posts

  • 0
Posted

This has happened to me too - really frustrating as i have several scenes which are reliant on this 

  • 0
Posted

Same story, I guess google changed something or there is a max amount of requests per day.

Hope its a temporary thing or I need to research again into a new tts solution

  • 0
  • Inquirer
  • Posted

    I think google now set captcha and SONOS can't use link any more, we need or write proxy script or

     

    Just listen .mp3 files with my records voice play from my server not google.

     

    But help me with script to play files please.

     

    Thank you.  

    • 0
    Posted

    Ok... So i figured a few things out... i can send my sonos pre-recorded mp3's but now i need a way to select which one. im using the speaking Sonos VD to trigger the TTS but now i also want it to change the name of the file being played...


     


    This is the krikoff code that i edited. notice the x-file bit..


     


    line 1313        "<InstanceID>0</InstanceID><CurrentURI>x-file-cifs://David-PC/TTS/tester.mp3</CurrentURI><CurrentURIMetaData>"..Sonos:createMetaData("TSS by Google...").."</CurrentURIMetaData>",

     

    I left the google bit there coz im not a programmer and not sure what that does...

     

    Now i have a global variable that i can change(just added a line to each button) to say tester1.mp3 but how do i add the variable into krikoffs code?

     

    Like i said im no coder so kinda just added what i thought might work and left the rest as is coz i have no idea what most of it does

    anyone? please?

    • 0
    Posted

    Ok

     

    found a solution on another forum

     

    you have to add , client=t after the UTP bit. see code below. it works 100%

     

    x-rincon-mp3radio://translate.google.com/translate_tts?ie=UTF-8, client=t".."&a".."mp;tl=".. (lng or "fr") .. "&a" .. "mp;q=" .. (urlEncode(message or "") or "message") .. "</CurrentURI><CurrentURIMetaData>"..Sonos:createMetaData("TSS by Google...").."</CurrentURIMetaData>"

    • 0
    Posted

    Genius -I'll try that as soon as I get back to the UK - remote access has stopped since the latest update too!

    • 0
    Posted

    Ok

     

    found a solution on another forum

     

    domotique-fibaro.fr ?
    • 0
    Posted

    I have tried to copy the above and replace it on my VD but it still doesnt work. Is there any chance you could send me the full code?

    Many Thanks!!!

    • 0
    Posted

    "<InstanceID>0</InstanceID>,<CurrentURI>x-rincon-mp3radio://translate.google.com/translate_tts?client=t".. "&a" .. "mp;tl=".. lng .. "&a" .. "mp;q=" .. urlencode(message) .. "</CurrentURI>,<CurrentURIMetaData></CurrentURIMetaData>",

    • 0
    Posted

    Can you try this:

     

    Please login or register to see this link.

     

    ??

    • 0
    Posted

    Thanks

    • 0
    Posted

    I can use the link on my PC and it works fine - How do you translate the url to the lua code from this...??

     

    "<InstanceID>0</InstanceID>,<CurrentURI>x-rincon-mp3radio://translate.google.com/translate_tts?client=t".. "&a" .. "mp;tl=".. lng .. "&a" .. "mp;q=" .. urlencode(message) .. "</CurrentURI>,<CurrentURIMetaData></CurrentURIMetaData>",

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...