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

Do you mean for translate or TTS?

And which JSONs did you edit?

I meant translate… checking it again, seems that time I took a copy of your repo, I duplicated actually 1.9.51, while I see your actually last prod. version got 1.10.2 :wink: So no need right, as you changed the method in the meantime.

1 Like

Hello,

I am looking for a solution to have something said locally from Homey from a speaker. What exactly is text-to-speech (non-cloud)? Does this work locally, between Homey and the Google specker?

Well,

The TTS app lets you generate a MP3 file through a Google Service, containing speech.

That MP3 is stored on Homey and available through a URL, so you can play it on devices in your network.

The non-cloud version still uses an online service of Google, but you do not need to create a Google Cloud Account for it to work. It is very limited though, the Cloud version is way way better.

Okay Thanks :see_no_evil_monkey:

I’m not getting prompted for “Project ID” and “Service Account JSON” during the setup/when adding device and there’s no such fields in the device settings? I am adding the correct device , “Text-to-Speech”, not the “Text-to-Speech (non-cloud)”?

Thanks

Goto the app settings :wink:

Well, that’s embarrassing, I was looking at the “device” settings, completely forgot about the actual app settings which I found in the meantime. However, I’m still getting the “Did you configure the JSON and Voice in the settingspage?” error, although I copy/pasted the JSON that was downloaded from the Google Cloud and selected a voice from the dropdown (I also entered the Project ID). Not sure what I’m doing wrong.

Thanks.

I have installed the app, created a Project, added a service user, downloaded the JSON and pasted it into the settings. I have also filled in “Project ID”. But the list of voices are empty and the action card “start saying…” is failing.

EDIT: The instructions told me to enable TTS and then select/create project. TTS had to be enabled INSIDE the new project. Then it worked.

Question below is still something I do not understand:

Also - when using this combination of two flows, one for “start speaking…“ and one “URL Triggered”, how to differentiate between differend speakers? How dows the “Start speaking” flow tell the several URL triggered flowd wich one to fire and send URL to the correct speaker?

Basically: create a TTS device for each separate speaker.

Ah, Of course. Brainfart.

Is there a equaly simple solution to that my Sonos speakers seem to loop and play the URL over and over again? “Repeat” on the device is turned off! :slight_smile: