# \[APP\]\[Pro\] Google Services — Translate, Text-to-Speech, YouTube and Google Maps

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

<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 25, 2021, 10:50am UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/1 "2021-02-25T10:50:00Z")

</div>

![xlarge](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/c/5c96bfd766321ecdcfbc00ad115f990aaa7874b0.jpeg)

# Google Services

**Bring Google Text-to-Speech, translation, YouTube search and route information into your Homey Flows.**

[Install Google Services](https://homey.app/a/nl.qluster-it.GoogleServices/) · [User manual](https://github.com/Qluster-IT/nl.qluster-it.GoogleServices/wiki) · [Source code](https://github.com/Qluster-IT/nl.qluster-it.GoogleServices)

New to Google Services, or looking for help with a feature? Start with the [official user manual](https://github.com/Qluster-IT/nl.qluster-it.GoogleServices/wiki).

## What can you do with Google Services?

### Text-to-Speech and speaker announcements

Use basic Google TTS without a Google Cloud account, or use Google Cloud Text-to-Speech for a wide choice of voices and SSML. Choose and preview Cloud voices for a device, and adjust speech settings such as speed, pitch and volume in supported Flow cards.

Generate an audio URL for a compatible player, or announce text directly on compatible Google Cast, Sonos or UPnP/DLNA speakers. Choose individual speakers, create reusable speaker groups, or select **All speakers**. You can also exclude TVs, and optionally TV speakers, from announcements.

Set a default speaker for a device, and adjust or cap the volume for each speaker in a saved group. Choose how Sonos announcements play:

- **Play Separately** sends a native announcement to each selected room. It can start quickly and play over your current audio. Other rooms in the same Sonos group are not targeted, and the group stays as it is. Sonos manages the background audio level; the optional speaker-volume setting controls the announcement volume. Selected rooms may not start at exactly the same time.
- **Play in Sync** plays the announcement across compatible selected rooms together, then restores their original groups and playback where supported.

Announcement Flows can continue when playback starts or wait until the speakers have finished.

Speaker lists in Pair, Repair and Saved groups load promptly and refresh in the background. You can also request a fresh speaker scan.

### Google Translate

Translate text with a Flow card or a Google Translate device, then use the original text and translation in your automations. You can also translate and announce text directly on a compatible speaker.

### YouTube

Search YouTube from a Flow and use the returned video ID or link with another Flow card or player.

### Google Maps

Save routes on Maps devices or calculate a one-off route in Advanced Flow. Get travel time, distance and estimated arrival for driving, public transit, walking or cycling. Refresh saved routes when you need an update. Maps can use Homey’s location for either route endpoint and show estimated traffic delays for driving when Google provides the required estimates. Route images and address suggestions are available when configured.

Set an **Arrive by** time and optional **Departure buffer** to see a **Leave by** time based on the latest route estimate.

## Getting started

You only need to configure the services you plan to use:

1. Create a Google Cloud project for the Google Cloud services you plan to use.
2. For **Cloud Text-to-Speech** and **Translate** , enable the relevant APIs, create a service account, and enter its JSON key and project ID in Google Services settings.
3. For **YouTube** , enable YouTube Data API v3 and enter an API key.
4. For **Google Maps** , use a separate Maps API key and enable Routes API for routes. Maps Static API is optional for route images; Places API (New) is optional for address suggestions.
5. Enter credentials only for the services you use. Treat service-account JSON keys and API keys like passwords, and never post them in the forum.

App settings provide test buttons for Cloud Text-to-Speech, Translate, YouTube and Maps. Maps tests can check Routes and the optional address-suggestion and image features separately. Test requests may count toward your Google usage.

Some APIs require a billing account to be linked. **Linking a billing account does not itself mean you will be charged.** Typical personal and home use is often free because Google provides free allowances or quotas, though the allowance depends on the service and usage. Charges may apply when usage exceeds an applicable allowance. Check Google’s current [Text-to-Speech pricing](https://cloud.google.com/text-to-speech/pricing), [Translate pricing](https://cloud.google.com/translate/pricing) and [Maps pricing](https://developers.google.com/maps/billing-and-pricing/pricing), and monitor usage in the Cloud Console.

Some text fields support Better Logic Library (BLL) coding. BLL coding is available only in supported fields, including speech, translation, YouTube searches and manually entered one-off Maps endpoints. See the [Better Logic Library user topic](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876) and the Better Logic Library app settings for instructions.

## Questions and support

Questions and examples are welcome in this topic. Please report bugs or submit feature requests through [GitHub Issues](https://github.com/Qluster-IT/nl.qluster-it.GoogleServices/issues).

## Apps

> [@\[Profile\] Arie J. Godschalk](https://community.homey.app/t/profile-arie-j-godschalk/70663/2):
>
> Apps developed or maintained by me: [Advanced Triggers](https://community.homey.app/t/app-pro-advanced-triggers-trigger-and-action-cards-with-eventname-for-advanced-flows/65651) , [BeNext](https://community.homey.app/t/app-pro-benext-benext-devices-for-homey/76104) , [Better Logic](https://community.homey.app/t/app-pro-better-logic-just-some-better-logic-and-variable-management/5568) , [Chronograph](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214) , [Device Capabilities](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287) , [Advanced Virtual Device](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198) , [FTP Client](https://community.homey.app/t/app-pro-ftp-client/70876) , [Google Services](https://community.homey.app/t/google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257) , [Homesh Controller](https://community.homey.app/t/app-pro-homesh-controller-homesh-satellite-connect-homey-pro-2023-to-homey-pro-for-led-speaker-zwave-satellite-and-network-resource/70369) , [Homesh Satellite](https://community.homey.app/t/app-pro-homesh-controller-homesh-satellite-connect-homey-pro-2023-to-homey-pro-for-led-speaker-zwave-satellite-and-network-resource/70369) , [JSON Handler and Manipulator](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317) , [LOQED](https://community.homey.app/t/app-pro-loqed-your-personal-doorman/89816) , [Music Url Converter](https://community.homey.app/t/music-url-converter-play-music-urls-on-homey-bigger-then-900-kb/43546) , [Reverse Proxy and DDNS](https://community.homey.app/t/app-pro-reverse-proxy-and-ddns/160862) , [Simple Log](https://community.homey.app/t/simple-log-app/146) , [Universal Media Player](https://community.homey.app/t/universal-media-player-a-generic-storages-place-for-your-homey-speakers-tvs-or-other-media-devices/43450) and [Virtual Devices](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723) . [Goto profi…](https://community.homey.app/t/profile-arie-j-godschalk/70663)

## Support development

Enjoying Google Services? Donations and sponsorship help support continued development. Thank you!

> [@\[Profile\] Arie J. Godschalk](https://community.homey.app/t/profile-arie-j-godschalk/70663/3):
>
> Donations or Sponsorship. You can help with the development, maintenance and support for the Apps, by donating or becoming a sponsor. This would be much appreciated! The more donations i receive, the more time i can make free for development and support. slight_smileDonations can be done through: [[bunq.me] bunq](https://bunq.me/QlusterIT) Donate securely using the payment methods available on the payment page, like iDeal. [[PP] PayPal](https://paypal.me/QlusterIT) Requires a PayPal account. [[GS] Github Sponsors](https://github.com/sponsors/Qluster-IT) Allowes for CreditCard. …

---

<div class="post-metadata">

**Author:** ![mvanlijden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mvanlijden/32/27064_2.png) [@mvanlijden](https://community.homey.app/u/mvanlijden)\
**Post date:** [February 25, 2021, 10:51am UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/2 "2021-02-25T10:51:16Z")

</div>

This looks really interesting! I imagine the quality of the voice is so much better than the regular one.  
Usecase for me would also be a couple of preset voice messages to send as a notification on Google speakers or other devices. Given the buffering of the last 100 messages this will really decrease the load. Will try this once it is deployed 🙂

---

<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 25, 2021, 10:51am UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/3 "2021-02-25T10:51:16Z")

</div>

Indeed, the voices are much better, especially the Wavenet voices. And I’m using NL\_MALE\_C wavenet atm, and it is very nice.  
Also, being able to write SSML makes it much more realistic, for example, when writing paragraphs with sentences like  
\<p\>\<s\>hello\</s\>\<s\>I hope you are doing fine today\</s\>\<s\>see you later\</s\>\</p\>,  
The pauses between those sentences are variable, much more intuitive than putting breaks of 0.5 or 1 seconds after each sentence. And a million characters a month is quite a lot I reckon.  
But I am indeed planning on improving and making stuff settable that wil reduce google requests overal, make the memory usage smarter to save those precious monthly characters 😉

---

<div class="post-metadata">

**Author:** ![Jahn\_K](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jahn_k/32/1150_2.png) [@Jahn\_K](https://community.homey.app/u/Jahn_K)\
**Post date:** [February 25, 2021, 10:51am UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/4 "2021-02-25T10:51:16Z")

</div>

How far away are you from getting the audio to play on Homey itself? 🙂

---

<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 25, 2021, 10:51am UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/5 "2021-02-25T10:51:16Z")

</div>

So I am for one very interested in this application. Hope the app will be available soon

---

<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 25, 2021, 10:51am UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/6 "2021-02-25T10:51:16Z")

</div>

I already have the functionality ready in another app, but I wanna make it smart, so it won’t kill homey’s bandwidth or anything.  
And I’m waiting for the publish to go through, then I’ll work on adding the homey as output setting in.

---

<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 25, 2021, 10:51am UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/7 "2021-02-25T10:51:16Z")

</div>

Same here, just waiting for approval 🙂

---

<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 25, 2021, 10:51am UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/8 "2021-02-25T10:51:16Z")

</div>

As soon as this comes online you can play it on homey 🙂

[Music Url Converter - Play Music URL’s on Homey bigger then 900 KB - Apps - Homey Community Forum (athom.com)](https://community.homey.app/t/music-url-converter-play-music-urls-on-homey-bigger-then-900-kb/43546)

---

<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 25, 2021, 10:51am UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/9 "2021-02-25T10:51:16Z")

</div>

Now included: Google Translate

---

<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 25, 2021, 4:20pm UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/10 "2021-02-25T16:20:15Z")

</div>

Great!!!Some news when the app will be ready for public download?Thanks

---

<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 25, 2021, 5:05pm UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/11 "2021-02-25T17:05:47Z")

</div>

Its live now!

---

<div class="post-metadata">

**Author:** ![Bulletcather](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bulletcather/32/13738_2.png) [@Bulletcather](https://community.homey.app/u/Bulletcather)\
**Post date:** [February 25, 2021, 7:08pm UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/12 "2021-02-25T19:08:58Z")

</div>

The app is installed.  
The Json file is correct  
I have select a voice.

I dont understand how i can do something simple as sending the text Dinner is Ready to a Google Chromecast speaker. Do you have a flow example voor me?

---

<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 25, 2021, 8:06pm UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/13 "2021-02-25T20:06:14Z")

</div>

Does the Chromecast App have a ActionCard for sending a URL to the device?  
If so:

1. Create a Google TTS Cloud Device
2. Create a flow with a trigger Url Triggered from the Google TTS Device, and have that flow send the token Url from that trigger (within the flow) to the Chromecast device.
3. Create a flow to speak, using a conditioncard (an And card) or a actioncard (a Then card) to start speech for that Google TTS Device.

**Step 1**  
Create a Google TTS Cloud Device.  
I call it TTS Sonos 1 in this example.

**Step 2**  
Setup a trigger for the TTS Device with a actioncard that send the Url token to the device you want to hear to voice on.  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/2/02dd31351c29ff6438fa0a7bf2f70ba543330c1e.png)

**Step 3**  
Start a speech condition/action (And or Then part) with a text (and it wil trigger the flow from step 2).  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/9/5963e3b3ae3d6737c72f144581bf9e1027659cb7.png)

---

<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 26, 2021, 9:29am UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/14 "2021-02-26T09:29:43Z")

</div>

Hi Arie,  
sorry, but I don’t understand how to manage the second flow.  
I have the problem that TTS keeps repeating itself. Also it takes about 3-4 seconds for the voice output to start.  
To understand it better, would you also please post the second flow completely.

Btw, do I have to activate the OAuth-Consent Screen? I only have rights for the user type “External”, is that ok?

---

<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 26, 2021, 9:49am UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/15 "2021-02-26T09:49:22Z")

</div>

Hey,

I updated the example i gave above (and the topic main text also) to better show the flows.

If you are using the Athom Sonos App, use Play Audio Clip. This is the new improved version of Send URL, and it works much faster.

In the device settings you can finetune the delay, with Sonos App (URL) you need about 4sec indeed, but with play Audio Clip its about 1 sec or 1.5 seconds. (Default setting is 1000ms).  
This delay is included in the time to trigger the Url Finished Trigger Card which can be used to turn the Sonos device back to previous state.

No you don’t need a OAuth-Consent Screen, just a Service Account JSON, with viewing rights to the api’s you use (Text-To-Speech and perhaps Translate). But easier is it to make the Service Account projectmanager like in the Google Setup example given above. Then you don’t need to worry about further rights every time, only enable the right API’s.

Since the Google Cloud Services used (right now) are not linked to a person there is no need (or ability) to connect it to a OAuth (which is used to connect a service including/requesting a specific user). OAuth would be required for youtube searches (linked to you search account) or Speech-To-Text (used to better understand the specific user that is going to be talking).

If you have another quistion i’ll be glad to help.  
Let me know if you get it working or not.

---

<div class="post-metadata">

**Author:** ![Bulletcather](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bulletcather/32/13738_2.png) [@Bulletcather](https://community.homey.app/u/Bulletcather)\
**Post date:** [February 26, 2021, 10:02am UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/16 "2021-02-26T10:02:30Z")

</div>

Thx for all the help.  
But still i can not get speech working on a Chromecast Speaker. (google home max, or mini)  
I hear the sound that the speaker is triggerd. But no sound.

I hope that some can help me.

---

<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 26, 2021, 10:16am UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/17 "2021-02-26T10:16:08Z")

</div>

unfortunately I don’t have a Chromecast device.  
If you send the URL as notification (or save in variable) and you play it yourself through a browser like chrome, does it work?  
Does Chromecast have acces to the same network as Homey?

The source is on bitbucket, if someone with a Chromedevice has the same issues and can debug (or even fix) i would be happy to try and solve it, if it is a issue with my 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 26, 2021, 10:22am UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/18 "2021-02-26T10:22:51Z")

</div>

I just checked the sourcecode for com.google.ChromeCast on GitHub, and the OnCastWebsite, which you should be able to trigger through a Action Card “Cast Website”, send it as a audio/mp3, just as it should be.

Have you tried Cast Website with the Url token?

Disclaimer: This comment is based purely on reading the source for ChromeCast. 😉

---

<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 26, 2021, 11:01am UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/19 "2021-02-26T11:01:41Z")

</div>

Now it works flawlessly, and the voice output is also much faster. 👍🏼  
Thank you very much!

---

<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 26, 2021, 1:57pm UTC](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257/20 "2021-02-26T13:57:58Z")

</div>

I don’t understand how create a google cloud device…😢

[Next page](https://community.homey.app/t/app-pro-google-services-translate-text-to-speech-youtube-and-google-maps/43257.md?page=2)
