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

**URL:** <https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257>\
**Category:** Apps\
**Tags:** app, tools\
**Created:** [February 25, 2021, 10:50am UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257 "2021-02-25T10:50:00Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [February 27, 2021, 12:00pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/41 "2021-02-27T12:00:41Z")

</div>

If there is a error, there should be a real error. Not fixing the JSON correct will show when clicking test flow. ← Apparently not always.

When you play the URL self in a browser (send it to your phone or put it in a variable and copy/paste, does the file play?  
If So, try the Cast a audio URL from that variable, does it work now (did for someone else).

Is there anyone else reading this that does have a Chromecast device that knows if this works?  
Or does anyone knows if the Cast a audio URL requires a HTTPS?

---

<div class="post-metadata">

**Author:** ![Ewen\_Le\_guennec](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ewen_le_guennec/32/25503_2.png) [@Ewen\_Le\_guennec](https://community.homey.app/u/Ewen_Le_guennec)\
**Post date:** [February 27, 2021, 12:03pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/42 "2021-02-27T12:03:17Z")

</div>

No sorry i’m so dumb…i create a cloud account,the Json file is download on my phone but where i put the file please?

 ![Screenshot_20210227-130221_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/5/c57168cba345eb26506c53a0a655d94086b389ce.jpeg)

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [February 27, 2021, 12:04pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/43 "2021-02-27T12:04:08Z")

</div>

Regarding JSON, I had guessed, but did not know.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [February 27, 2021, 12:09pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/44 "2021-02-27T12:09:58Z")

</div>

The easiest way is to do it on the computer.  
Download the JSON file → open the JSON file with an editor → copy the content  
Open Developer in a browser → login (if necessary) → App Settings → select “Google Services” → past the content → choose a voice → fill in the name of the project → save

---

<div class="post-metadata">

**Author:** ![Ewen\_Le\_guennec](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ewen_le_guennec/32/25503_2.png) [@Ewen\_Le\_guennec](https://community.homey.app/u/Ewen_Le_guennec)\
**Post date:** [February 27, 2021, 12:14pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/45 "2021-02-27T12:14:06Z")

</div>

Thanks will do that when i’m home with my computer.Keep you informed if it’s working😉.Thanks again for your patience

---

<div class="post-metadata">

**Author:** ![RobvandeGoor](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robvandegoor/32/20328_2.png) [@RobvandeGoor](https://community.homey.app/u/RobvandeGoor)\
**Post date:** [February 27, 2021, 12:45pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/46 "2021-02-27T12:45:47Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> SSML coding is accepted now, like: Here are SSML samples.. And continue

Does anybody have a sample flow how to use SSML in a flow card?

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [February 27, 2021, 12:47pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/47 "2021-02-27T12:47:13Z")

</div>

Could you please show/share your various flows?

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [February 27, 2021, 1:05pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/48 "2021-02-27T13:05:42Z")

</div>

Yeah here are some examples,

\<speak\>\<p\>\<s\>Let OP: \<break time="0.5s"/\>\</s\>\<s\>We gaan over 10 minuten eten.\</s\>\<s\>Iedereen naar de WC gaan, handen wassen en tafel dekken.\</s\>\</p\>\</speak\>  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/2/72d9fb31417eabd32542e679690a3ae242e27864.png)

\<speak\>\<p\>\<s\>Let OP: \<break time="0.5s"/\>\</s\>\<s\>We gaan nu eten.\</s\>\<s\>Ik ga ervanuit dat iedereen aan tafel zit, goed zo!\</s\>\<s\>Eet smakelijk!\</s\>\</p\>\</speak\>  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/b/ab28ba39c127ce96b3cc929fceb8f3d3b53fec4e.png)

**Or, combine them:**  
Step 1.  
Create a text variable that you reset every night to a whitespace ( ) for example.  
Like: Te doen meldingen (to make announcements)

Step 2.  
Then create a few flows that fill that variable with sentences (including the variable self, else it only holds one text) \<s\>text\</s\>:

- ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/a/3a471c4b5f909f7f2b3a1e5710620db58c96f664.png)

- 

- Vaatwasser = Dishwasher

- 

Step 3.  
Then create a speech flow that triggers the TTS speech device:  
The variable is included within the paragraph \<p\>.  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/8/6804e02ac3b1db58391e5803316e665458bc0e5d.png)

Step 4.  
Then create a Speak flow:  
Here i first clear to variable to a whitespace ( ), then I trigger all flows from step 2 after 1 second (after the variable is cleared).  
After 5 seconds the Speech flow is triggered, starting the speech with the filled variable in the middle.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/5/95b95d7b20ef7b8690fe3b5037d80ea35b6d8622.png)

Then finally, create a flow that triggers from Step 2 to create a string/text:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/9/c9635519528bc4dc262a0c5dc3c5e5739e40f7ae.png)

And ofcourse you need to trigger the \_start flow with triggers, like saying goodmorning 🙂

**Have fun!**

---

<div class="post-metadata">

**Author:** ![RobvandeGoor](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robvandegoor/32/20328_2.png) [@RobvandeGoor](https://community.homey.app/u/RobvandeGoor)\
**Post date:** [February 27, 2021, 1:51pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/49 "2021-02-27T13:51:23Z")

</div>

Thanks, now it is clear to me how te make the flows.

I will make some test flows to test the following settings in the text:

pauze : `<break time="200ms"/>`

prosodic break: `<break strength="x-weak"/>` or `<break strength="weak"/>` or `<break strength="medium"/>` or `<break strength="strong"/>` or `<break strength="x-strong"/>`

etc.

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [February 27, 2021, 2:36pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/50 "2021-02-27T14:36:15Z")

</div>

Yeah, and remember, you need to start and finish with the (case-sensitive) \<speak\> … \</speak\> or else it will just see it as Text and not Ssml.

---

<div class="post-metadata">

**Author:** ![Ewen\_Le\_guennec](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ewen_le_guennec/32/25503_2.png) [@Ewen\_Le\_guennec](https://community.homey.app/u/Ewen_Le_guennec)\
**Post date:** [February 27, 2021, 4:56pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/51 "2021-02-27T16:56:07Z")

</div>

Finally,i have a working app now!Works very well on Nest product,great app,thanks to the developper and Fantross for his help,goodbye old app Google Tts,welcome for this one!!

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [February 27, 2021, 6:15pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/52 "2021-02-27T18:15:25Z")

</div>

Nice to hear!

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [February 27, 2021, 6:18pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/53 "2021-02-27T18:18:38Z")

</div>

Just FYI: All my app does is check if the text begins with \<speak\>, if so, send it to Google as SSML instead of generic text. So everything Google supports (and that is some, but by far not all SSML posibilities) is supported as wel. And when they add features or support voor curtain ssml commands/elements, it will automaticly be “available” in my App, no need for updates or anything.  
(same for voices)

---

<div class="post-metadata">

**Author:** ![Martin\_van\_der\_Aart](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin_van_der_aart/32/9658_2.png) [@Martin\_van\_der\_Aart](https://community.homey.app/u/Martin_van_der_Aart)\
**Post date:** [February 27, 2021, 7:43pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/54 "2021-02-27T19:43:32Z")

</div>

Hi Arie, i tried to setup the google service account to use your app but it said i had to make a billing account with my creditcard to make it work.  
Although the creditcard won’t be used with a trial version they say i didn’t proceed.  
First i would like to know if it’s possible to make the service account without making the billing account.?

---

<div class="post-metadata">

**Author:** ![I\_am\_who](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/i_am_who/32/19571_2.png) [@I\_am\_who](https://community.homey.app/u/I_am_who)\
**Post date:** [February 27, 2021, 8:04pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/55 "2021-02-27T20:04:30Z")

</div>

My question exactly. I do not have a creditcard. Do not want one either. Can it be done without billing profile…

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [February 27, 2021, 8:20pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/56 "2021-02-27T20:20:45Z")

</div>

Hey Martin,

It is **not** possible to use Text-To-Speech without filling in the Credit information.  
Currently the amount of 4million normal voices and 1 milion characters Wavenet voices are not something you have to worry about, i use it quite a lott (also for testing and my smartwatch who just keeps talking 😉 )  
But if they lower it or make it must pay, there is not much i can do about it.

I have been using (the source) to this app myself for awill, and it is great to have Homey really speak everything whereever i am in the house.  
So i wanted to share this with other Homey users, giving people the ability to use it with as minimal work (just getting a token). But considering the amount to pay Google if i did it directly on my own account, and not being able to moneytisch the App or retrieve real funds, building the App with a build in Google Service Account was out of the question 😉

And about the amount of characters:  
_To see how many characters you have used up, goto the Google Cloud Console homepage, and to the right click on View detailed charges (the filter Group By SKU should be on)_

---

<div class="post-metadata">

**Author:** ![Martin\_van\_der\_Aart](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin_van_der_aart/32/9658_2.png) [@Martin\_van\_der\_Aart](https://community.homey.app/u/Martin_van_der_Aart)\
**Post date:** [February 27, 2021, 8:58pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/57 "2021-02-27T20:58:16Z")

</div>

Thank for the info Arie, good to know.  
Thanks for making the app 👍💪

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [February 27, 2021, 8:59pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/58 "2021-02-27T20:59:13Z")

</div>

Furthermore, even a with a Full account (non-trial) i have no billing at all, because of the low consumption.  
But that ofcourse is no garanty on how Google will handle billing in the long run 😉

---

<div class="post-metadata">

**Author:** ![RobvandeGoor](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robvandegoor/32/20328_2.png) [@RobvandeGoor](https://community.homey.app/u/RobvandeGoor)\
**Post date:** [February 27, 2021, 11:06pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/59 "2021-02-27T23:06:05Z")

</div>

In some flows before I start TTS, I start to play a MP# sound. This file is stored on Homey via the Soundboard app.

With the Google Services TTS I like also to start first the MP3 ander than the TTS part. To do so I have installed a Webserver on Homey but this is not the preferred solution.  
Will it be possible in future updates to store via the Google Services app, MP3’s on Homey and access them via casting?

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [February 27, 2021, 11:19pm UTC](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257/60 "2021-02-27T23:19:22Z")

</div>

Yeah, have a look: i created a App for this:

> [@\[APP\]\[Pro\] Universal Media Player - A Generic storages place for your Homey, speakers, tv's or other media devices](https://community.homey.app/t/universal-media-player-a-generic-storages-place-for-your-homey-speakers-tvs-or-other-media-devices/43450):
>
> Use an UPnP Player to find the URL of files on a UPnP Server through browsing (with thumbnails). When executed it will retrieve the file from de UPnP Server based on the same browsing structure. This way you will be able to use a UPnP Server to play sounds on speaker systems like Sonos but also on TV’s like Samsung or LG. Just start by adding the UPnP Player and select the UPnP server you want to use. (Because of 30 sec timeout while discovering devices, you sometimes have to search twice wi…

It sends sounds/mp3 from a UPnP Server (Synology or any (Asus) Router with Media/UPnP Server on it) to any device through a URL, same as with the Google Service App.

I made that App espesialy for this purpose, playing announcement sounds before voices.

I explain all my apps in a topic about this (i think this is pressisly what you are looking for):  
[How to make a Great Public Announcement ¶ System with any device! - Apps - Homey Community Forum (athom.com)](https://community.homey.app/t/how-to-make-a-great-public-announcement-pa-system-with-any-device/43481)

[Previous page](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257.md?page=2)

[Next page](https://community.homey.app/t/app-pro-google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257.md?page=4)
