# \[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:** 16

<div class="post-metadata">

**Author:** ![Robinjo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robinjo/32/2656_2.png) [@Robinjo](https://community.homey.app/u/Robinjo)\
**Post date:** [October 28, 2022, 1:54pm 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/303 "2022-10-28T13:54:37Z")

</div>

I did some testing, streaming the wav url from chrome to google nest audio works (didn’t noticed this option before). Soundboard app can play wav files on homey speaker, but there is nog soundboard play card in google chromecast app from athom only a lot of streaming option for tunein station/ internet radio and the sound URL I use at the moment.

---

<div class="post-metadata">

**Author:** ![Robinjo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robinjo/32/2656_2.png) [@Robinjo](https://community.homey.app/u/Robinjo)\
**Post date:** [October 28, 2022, 1:55pm 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/304 "2022-10-28T13:55:51Z")

</div>

make a non cloud device and 2 flows. one for sending text to url and one for non cloud device to for example chromecast audio URL THEN card. Setup page is not used for this non cloud option  
 ![Schermafbeelding 2022-10-28 om 16.02.28](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/b/9b7f54907ffebc27486f9ab76f2c95d340fb0f53.png)

---

<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:** [October 28, 2022, 1: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/305 "2022-10-28T13:59:57Z")

</div>

> [@HuisCHovens](#):
>
> Ah that can i try. How do i that setup i find only billing things?

It’s another device you can create.

---

<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:** [October 28, 2022, 2:02pm 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/306 "2022-10-28T14:02:32Z")

</div>

> [@Robinjo](#):
>
> sound URL I use at the moment.

Does the url come from the google service app?

> [@Robinjo](#):
>
> streaming the wav url from chrome to google nest audio works (didn’t noticed this option before)

I’m not sure: what did go wrong then? What did you use before?

---

<div class="post-metadata">

**Author:** ![Robinjo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robinjo/32/2656_2.png) [@Robinjo](https://community.homey.app/u/Robinjo)\
**Post date:** [October 28, 2022, 2:17pm 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/307 "2022-10-28T14:17:15Z")

</div>

Yes the URL is coming from your app and is casted to chromecast livingroom and a logic to get the url for testing in browser you asked me. But did only listen to the link on PC speakers, now I noticed that I can also stream from browser to chromecast. Thats the difference in testing before.

So now I know the link your app creates is working to chromecast from browser, but not via the chromecast homey app. I hear pling for connection, but after this no audio.

Setting your app to MP3 it works via the chromecast homey app. So maybe there sits the problem?

![Schermafbeelding 2022-10-28 om 16.06.08](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/d/dd5be0751371af6d1aebf4f8ca1c50aec8b48b5e.png)

---

<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:** [October 28, 2022, 2:29pm 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/308 "2022-10-28T14:29:16Z")

</div>

> [@Robinjo](#):
>
> Setting your app to MP3 it works via the chromecast homey app. So maybe there sits the problem?

Not if my URL works on your livingroom, imho.  
Because, just like with Sonos, the only work if i give the right extention and filetype with.  
And it does that correctly (if i send a .wav to sonos but the filetype is audio/mpeg, it will not work correct on Sonos).

Perhaps the Chromecast app does not send a wav url through correctly?  
I don’t know, just speculating.

---

<div class="post-metadata">

**Author:** ![Robinjo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robinjo/32/2656_2.png) [@Robinjo](https://community.homey.app/u/Robinjo)\
**Post date:** [October 28, 2022, 2:34pm 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/309 "2022-10-28T14:34:32Z")

</div>

I think thats the problem indeed about the filetype chromecast app is sending, will contact athom about there app, thanks for helping. Your part is working nicely !

---

<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:** [October 28, 2022, 4: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/310 "2022-10-28T16:04:59Z")

</div>

I know they do have the mapping in the Soundboard app (old version already btw):

```auto
const TYPES_MAP = {
  'audio/wav': 'wav',
  'audio/x-wav': 'wav',
  'audio/mp3': 'mp3',
  'audio/mpeg': 'mp3',
};

```

And they even have build a **migration** for it to work correctly with Sonos :

```auto
/*
 Add file extension to paths, to serve the correct Content-Type for e.g. Sonos integration
*/
	async _migration1() { ... }

```

---

<div class="post-metadata">

**Author:** ![Robinjo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robinjo/32/2656_2.png) [@Robinjo](https://community.homey.app/u/Robinjo)\
**Post date:** [October 28, 2022, 4:11pm 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/311 "2022-10-28T16:11:04Z")

</div>

Oke so they maybe needs to do that also for the chromecast app as well. Athom apps are not opensource I think I red somewhere so we can’t look in the code I guess?

---

<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:** [October 28, 2022, 4:16pm 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/312 "2022-10-28T16:16:22Z")

</div>

> [@Robinjo](#):
>
> Athom apps are not opensource I think I red somewhere so we can’t look in the code I guess?

Not there “official device apps” no, only there apparently never-formally-supported-apps like Soundboard and HomeyScript are opensource 😉

---

<div class="post-metadata">

**Author:** ![Robinjo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robinjo/32/2656_2.png) [@Robinjo](https://community.homey.app/u/Robinjo)\
**Post date:** [October 30, 2022, 2: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/313 "2022-10-30T14:56:48Z")

</div>

Hi Arie,

When I send 2 speech trigger at the same time to an URL only one gets send. The default homey speech card has some kind of cue it looks like and is doing both after each other.

Can you make this also for this app?

![Schermafbeelding 2022-10-30 om 15.45.03](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/2/a22a09cfa0fd48d76f82af52e4a671421ce5f203.png)  
 ![Schermafbeelding 2022-10-30 om 15.46.38](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/c/6c300ca859ba3ea42cd8c63b6ad4c79b4eec61dd.png)

---

<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:** [October 30, 2022, 3: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/314 "2022-10-30T15:19:20Z")

</div>

> [@Robinjo](#):
>
> Can you make this also for this app?

Hey Robinjo, i will not implement this in the Google Service itself, mainly because the issue is not with GS itself, but the playing-device not handeling queue. I could build in a queue, but then there comes a lott more questions like, priority and cancel queue items, etc.

Also, i already have the solution for you in another App of mine: [Advanced Triggers App voor Homey | Homey](https://homey.app/nl-nl/app/nl.qluster-it.AdvancedTriggers/Advanced-Triggers/)  
You can put the Trigger to seqentual, and let this trigger/flow send the Url to the device and wait to finish (or use the duration token and pass it along as argument).  
Each triggered flow will be put in the queue, and this works for anything, not just Google Services.

Perhaps i could make Advanced Triggers easier to use for this, just let me what would be easier in AT.

---

<div class="post-metadata">

**Author:** ![Robinjo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robinjo/32/2656_2.png) [@Robinjo](https://community.homey.app/u/Robinjo)\
**Post date:** [October 30, 2022, 4:30pm 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/315 "2022-10-30T16:30:16Z")

</div>

Thanks Arie,

This is what I was looking for. Will move to AT post for questions about that app related.

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [November 2, 2022, 6:52pm 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/316 "2022-11-02T18:52:30Z")

</div>

Can someone help me with some example, when I would like to send as part of flows, audio/speech to different Google Chromecast devices ? I got it working for one, two smart speakers in parallel…but if I have one flow saying something just on one of the speaker, and other flow speaking on other speaker, sometime some flows speaking on both, sometimes on all (eg. Alarm)… how I can achieve that ?

Also is there any particular reason for example why it’s not possible just to use “Start saying” via configured device, like in case of Google TTS ? (just asking, probably there is good reason 😉 ) Thank you.

---

<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:** [November 2, 2022, 7:31pm 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/317 "2022-11-02T19:31:51Z")

</div>

> [@Sharkys](#):
>
> Also is there any particular reason for example why it’s not possible just to use “Start saying” via configured device, like in case of Google TTS ? (just asking, probably there is good reason 😉 ) Thank you.

Is this a question for Google Services?  
I don’t have any real devices?  
And the devices that i/Google services do have has a Start saying card.

So i might be missing something?

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [November 2, 2022, 7:49pm 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/318 "2022-11-02T19:49:12Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> Is this a question for Google Services?

Yep

> [@Arie\_J\_Godschalk](#):
>
> I don’t have any real devices?

![obrazek](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/b/8beff6ca1602cfb9de727a67dd382fa3b85056a8.png)

> [@Arie\_J\_Godschalk](#):
>
> do have has a Start saying card.

They do, for that particular device above and I need to use URL Triggered condition, otherwise how can I send the URL to Chromecast … or did I completely misunderstood the concept ? 😉

---

<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:** [November 2, 2022, 7:55pm 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/319 "2022-11-02T19:55:15Z")

</div>

> [@Sharkys](#):
>
> They do, for that particular device above and I need to use URL Triggered condition, otherwise how can I send the URL to Chromecast … or did I completely misunderstood the concept ? 😉

Ah, i see.  
But how would you want it then: The google TTS device connected to a real device somehow?

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [November 2, 2022, 8: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/320 "2022-11-02T20:00:24Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> The google TTS device connected to a real device somehow?

Like the Google Cloud TTS Device linked with particular Chromecast device… otherwise I don’t know how I can easily achieve the case I have described above. (or I missed the concept) .

Basically that is what I’m using today :  
 ![obrazek](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/9/f929e1d5724b1807a9a98cdd6611474309d59e5f.png)

---

<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:** [November 2, 2022, 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/321 "2022-11-02T20:04:06Z")

</div>

> [@Sharkys](#):
>
> Like the Google Cloud TTS Device linked with particular Chromecast device… otherwise I don’t know how I can easily achieve the case I have described above. (or I missed the concept) .

Actually, the best way to achive what you want, is to create a TTS device for each output/speaker. It is ment this way also, because you need to configure the TTS device per speaker for the best quality.

And then you can just trigger the TTS device for the room you are in for instance.

Here, follow this current topic  
[Google Services TTS in Advanced Flow - Flows - Homey Community Forum](https://community.homey.app/t/google-services-tts-in-advanced-flow/71507/12)

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [November 5, 2022, 11:07am 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/322 "2022-11-05T11:07:36Z")

</div>

I must be missing something simple, every time I attempt to use Cloud TTS Service I get an error card “Did you configure the JSON and voices in the settings page”…as far as I can tell, yes I did. I set upi the cloud platform, got the JSON and copied the entire downloaded text into the app

The requests are showing up in Google

[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=15)

[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=17)
