[APP][Pro] Google Services - App for Translate and new Text-to-Speech for any device with url input

Did you setup a voice in app settings?

Yes, the very catchy one, af-ZA-Standard-A (FEMALE)

The copied JSON file is massive, the private key is many lines long.

I don’t have a Google Cloud Project (for translate) name entered as I’m not translating anything, also don’t have google API for Youtube as I’m not doing that yet

Dont know if this is helps but 04849596-977b-4171-b8e4-be9183d6112c

1 Like

Hey, where are you from?

Since you can select a voice from the list, everything should already be alright.
You only get a list of voices after the JSON file is correctly entered and you project is valid.
Actually, as soon as the list or voices is shown, it should just work.

Straigns thing is, in the diagnostic, it showed that your voice is undefined when the Url is requested.

So either its not correctly saved (open settings, if the voice is shown, it’s saved).
Or your flowcard has a non-empty-but-empty voice added to it?

Show me your flow?
Because the error seems to be between the flowcard and what it sends to Homey.

I’m from the UK

[tef:FLOWS:"H4sIAAAAAAACA7WTTYvbMBCG/0rQOSq2rE/fSim99AO2ewshjKVR1mwSBVtZsoT97x053nYLpQRKfZE1Hr8zz6vRhQXWXljtNBrnLJcKI5daOe5sMDxI0TkTvfHelLwDa9mnlLY7XHzYpVNY3N9/XwR86j2yJfP0NeUHHNjLkglnPGiIXISKdENjuOu846IRqo5COw36VfJz/9Qftou7lPaLrzjmWWs8IjwWNZID1q4urKcoovdCkWYHleFS+MCdd/TmVOMqDBBFRwJvWi1Nfjwfcej3eCjiyNo8nHCqcmFCaaibIHhUquHSOsc7XVteNQbJGGWaSpS8M2tFtWTPtJQ1UYGHtMfn9mpAe5OJy4nBF/NOw26Th367JcQlyxT+tRsJl+naxwqi442FjkuDyKFBzUVntI8KJELH1pM3l+LRTflXEGn/RnLT2c0kMOb3p9CnGQF87tOBXZtihEix1WoGa9tbvG5b+m29no69U421hUZYTZ6qRnIHaDkqaWwIOljtZyR9JVKFqHQyZhjyq5V11GCN1dyooElHAtVVHY+AUZbJkR2wdRlbhS5GMLypa0keCsvpWCsuQWpbaeOiey0o5mmQ1b9OQzqEvti22U4DO01HzuOGLgCGzbHP/mG292cq7RMFVvPxs4zn8v1LGh4XHna7cp++DSOWxOkeUeAOMk1+/a6ql+wq2lbF5JvM+Z1Zif/E/AfOt3z7t3xp4nuhZ/3yA6GvXnjJBAAA":/tef]

Okay, next time, place it in a preformated-text-block, so the quotes and other chars remain programing code :wink:
But thanks

Yeah, i really love this!

You have the wrong flowcard, you are just retrieving an Url, not starting speech.

Here you go, try this.

[tef:FLOWS:"H4sIAAAAAAACA62ST4vbMBDFv0rQOVOs/5JvPZSeSqG7txDCWBplzWbjxVbKLiHfveMk29JS2kDri/DT6I1+T3MUWbRHoSmEEI0B65QCk3QEdKqA8yVLk3xWEue6vWjF/f3d4m7YD9NCiqVIrAz1gUZxOi0FF62OomfNGWtdpxrQPgcwXecBdW4gRpRESqdUAh+fDT8Ow3ZHi9n3w8szjf0T7aviTRJtHQ90bnIUyjqUOiso1mowIUbonAzQaE8yOut1o+a6F9GqZileeZnXgTs8DE/02mb62idqb2JdniHSbjjkw7jb1LHfbplxKSrLP/4m5hVOptJgiaADdmA8EaOSA9V5l4pFQ9iJ9Tmc4xzSTfUXEBP+RKKiT+iwgMoNZ5y1h9ilCEorK4ty0aF7I8Gpvj/kfrgiYKr9sBeXSwlGZG21uoK17S1Zty0fW6/P795ZzaEyjQqugLHaQEQKQNb4kLPLwaUrkrsQ2ZlovslUcaxvUcriMPjgwNvs2Mcg97UdFKRiTGTfDsWaGypLsRT0oKU0nKEKEB01YNC40DgfS3xrqK7TYJp/nYZhn/s5ts32PLHn6ah12kzPRHnz3Nf0cI33eyn/Dyysrs8vKr3M+5+G8XGRcLfr99vF53GiuZBt8JGFL1h58uW7Ri7FxbRt5pBvCudnZqv+G/OEr79w/4b1L4wn/tanbxugwtx0BAAA":/tef]
1 Like

Sorry Arie, just getting to try this now and, while the flow is created, I am getting the exact same error with the new card as with the old. Whe importing the flow I did tell Device Capabilities app to replace TTS Sonos 1 (I don’t have any Sonos) with Google Cloud TTS device

Quick question: I am trying to use basic TTS on a Google Mini, without having to setup a Google Cloud account.

Is this how it is supposed to work?

Unfortunately that doesn’t here (no response on mini), although a TTS card using the “Google TTS” app does work fine (but the app seems to be abandoned). The generated url looks valid.

This does not work either here:
image

Try the URL on your PC or phone (LAN)?
Does it work?

Yes, on my PC it works fine from Chrome.
Does that mean that it’s a Chromecast App issue then? Not sure if the TTS App that still works uses a different method?

Might be yeah, can you share the lasts part of the url?

Full url:
https://translate.google.com/translate_tts?ie=UTF-8&q=Testing%20testing.&tl=en-GB&total=1&idx=0&textlen=16&client=tw-ob&prev=input&ttsspeed=1

Yeah, i think thats not gonna work with Chromecast, it needs an correct extention (mp3 in this case).
I might have to build somthing in for that.

2 Likes

If you send that URL to chromecast yourself, does it work?

and, try this URL for a moment please?
https://translate.google.com/translate_tts?ie=UTF-8&q=Testing testing.&tl=en-GB&total=1&idx=0&textlen=16&client=tw-ob&prev=input&ttsspeed=1&.mp3

No, that one does not work.
I think I have a Nest Mini btw, may be different from other minis around…

Do you know what might be wrong, @Peter_Kawa ?

This makes my mini talk; just enter what you’d like to hear by speech:

It really speaks the words “Diner is ready”

TEF :

[tef:FLOWS:"H4sIAAAAAAACA6WTTWvcMBCG/4rROQP6si3pVmhpofSU3MKyjKWRY7q7DrbTJiz73zv+oCUhhw09WdaMXz2v3vFZJBHOwuaUkkUFpCoJNmEFLqoEnnSsvNOG6mbuO4kgvvZ9e6DiloZfXaSxuLu7LRLNa3EjIjf00wMN4nIjTMrRNa4BXXoC60wEp6IFZVB6rmlF1V/Vb/2Rih/dqSug+I5HVljVxkfCn7MeC6II92fR8W6JtaRUEjRWlmB1rAGV80C+8lqaqipVZIF3eb/c3nGJRJiGJ1oOOYtYRf5eWtDYMGqmBlxZR6ixNsopcqaiue9ZBHkjXkRQlp89yz8w90s44glbGkI+9L9ZfEZ8HPp2wOMRpy7up6Frub4feXFq9xO23DVx11bgt5HNCYrS+lw2kHVy7Et5QG0zWKNidFXOWmax46u4qnEFLvWGrF8hr5mFq6JfHY0TDtO+Xe5zmsY95s0ExqnrT5uH3ZLTWUz0PNc+dycaim4sBsL0ssRoPEaZawON9BxepAheOoQSS++t1yZV6g27se+xXzVgK3vEcfr0lLr+LfLC+jQceO/+fksjBMU8TnkJDINg0dTga5khyQYpWZt19iHMFne7xdM1H7waIPO/aTDz/t/0vDNLV13zltZswVd108RMUBsyYEllHqky849QcXRallTLzYJbPcj13GUuPjjBl8vu8gdJ910mfQQAAA==":/tef]

Mmmm… not sure how that could work. The text tag you use for casting contains the initial text string “Dinner is ready” as far as I can tell?

Maybe the original repo holds a clue how the Google TTS app does this:

Maybe it generates an mp3 and streams that locally?