# Google text to speech (tts)

**URL:** <https://community.homey.app/t/google-text-to-speech-tts/29770>\
**Category:** Apps\
**Created:** [May 13, 2020, 7:33am UTC](https://community.homey.app/t/google-text-to-speech-tts/29770 "2020-05-13T07:33:28Z")\
**Posts on this page:** 20\
**Page:** 8

<div class="post-metadata">

**Author:** ![Glenn\_Dijkstra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/glenn_dijkstra/32/17251_2.png) [@Glenn\_Dijkstra](https://community.homey.app/u/Glenn_Dijkstra)\
**Post date:** [February 11, 2023, 10:04am UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/142 "2023-02-11T10:04:55Z")

</div>

First of all, thanks!  
I just installed the app, expected it to install next to the version I already had. But, I guess it installs over the old app.  
I ll fix the flows soon. Thanks for all the work you ve put into keeping this app alive!

---

<div class="post-metadata">

**Author:** ![Martin\_Verbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin_verbeek/32/10641_2.png) [@Martin\_Verbeek](https://community.homey.app/u/Martin_Verbeek)\
**Post date:** [February 11, 2023, 10:51am UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/143 "2023-02-11T10:51:07Z")

</div>

Sorry, yes it has the same app id, as i as was expecting the original dev to release the pull request quicker. Is it better if i give it another ID, so it can be installed seperatly?  
That also gives me the chance to fix issues faster.

---

<div class="post-metadata">

**Author:** ![Joka](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Joka](https://community.homey.app/u/Joka)\
**Post date:** [February 11, 2023, 11:29am UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/144 "2023-02-11T11:29:06Z")

</div>

Yes, I can access [tmpfiles.org](http://tmpfiles.org) from other devices and the sonos devices are all in the same network.  
Other apps like Sonos say works fine but will not transfer to SDK3, that’s why I am looking for an alternative.

Can you give me an URL example for reaching the file googletts.mp3 on tmpfiles. What makes the file unique, because I can not recognize an id?

May I ask way the app make use of a file storage like tmpfiles?

---

<div class="post-metadata">

**Author:** ![Martin\_Verbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin_verbeek/32/10641_2.png) [@Martin\_Verbeek](https://community.homey.app/u/Martin_Verbeek)\
**Post date:** [February 11, 2023, 1:43pm UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/145 "2023-02-11T13:43:59Z")

</div>

[https://tmpfiles.org/dl/929284/googletts.mp3](https://tmpfiles.org/dl/929284/googletts.mp3) not sure how long this will last…

I need temp storage as the API does not allow me to directly use the url generated from TTS, so i need to store the stream to a temp MP3 file that gives me a direct url.

---

<div class="post-metadata">

**Author:** ![Glenn\_Dijkstra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/glenn_dijkstra/32/17251_2.png) [@Glenn\_Dijkstra](https://community.homey.app/u/Glenn_Dijkstra)\
**Post date:** [February 11, 2023, 1:46pm UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/146 "2023-02-11T13:46:12Z")

</div>

Well, it’s not a big thing. I’m not in a pc right now. But for now, my (simple) flows don’t seem to be broken. I ll check and test my advanced flows soon.

---

<div class="post-metadata">

**Author:** ![Joka](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Joka](https://community.homey.app/u/Joka)\
**Post date:** [February 11, 2023, 4:31pm UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/147 "2023-02-11T16:31:34Z")

</div>

Thx Martin, when I understand you right, the app doesn’t use the node-sonos-http-api, right?

I was able to reach your sound sample on tmpfiles via chrome browser, that works.

But when I tried this I got an error (maybe https problem?):

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

Could you please try the same with the sonos app from athom play url.

Thx

---

<div class="post-metadata">

**Author:** ![Martin\_Verbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin_verbeek/32/10641_2.png) [@Martin\_Verbeek](https://community.homey.app/u/Martin_Verbeek)\
**Post date:** [February 11, 2023, 5:01pm UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/148 "2023-02-11T17:01:47Z")

</div>

Will do some testing to try and find the problem. Strange it works with my old homey pro and new Homey Pro within a container. I am using node-sonos-ts from Stephan.

Thx for helping!

---

<div class="post-metadata">

**Author:** ![Martin\_Verbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin_verbeek/32/10641_2.png) [@Martin\_Verbeek](https://community.homey.app/u/Martin_Verbeek)\
**Post date:** [February 11, 2023, 5:15pm UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/149 "2023-02-11T17:15:22Z")

</div>

No problem here playing it through the Sonos App with the below url… maybe the file was deleted in the meantime (it says resource not found (404)),  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/1/818b4498e79fd12e85fe22b6aca906b10501e360.png)

new one below

[https://tmpfiles.org/dl/929370/googletts.mp3](https://tmpfiles.org/dl/929370/googletts.mp3)

---

<div class="post-metadata">

**Author:** ![Martin\_Verbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin_verbeek/32/10641_2.png) [@Martin\_Verbeek](https://community.homey.app/u/Martin_Verbeek)\
**Post date:** [February 11, 2023, 5:30pm UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/150 "2023-02-11T17:30:44Z")

</div>

Can you PM me the exact text you want to say, maybe a char issue…

---

<div class="post-metadata">

**Author:** ![Glenn\_Dijkstra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/glenn_dijkstra/32/17251_2.png) [@Glenn\_Dijkstra](https://community.homey.app/u/Glenn_Dijkstra)\
**Post date:** [February 11, 2023, 6:12pm UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/151 "2023-02-11T18:12:50Z")

</div>

Everything works fine for me, thanks!

---

<div class="post-metadata">

**Author:** ![Martin\_Verbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin_verbeek/32/10641_2.png) [@Martin\_Verbeek](https://community.homey.app/u/Martin_Verbeek)\
**Post date:** [February 11, 2023, 7:30pm UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/152 "2023-02-11T19:30:40Z")

</div>

Thx Glenn, are you casting to Google or Sonos (or both)?

---

<div class="post-metadata">

**Author:** ![Joka](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Joka](https://community.homey.app/u/Joka)\
**Post date:** [February 12, 2023, 10:46am UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/153 "2023-02-12T10:46:23Z")

</div>

Actually the text doesn’t matter, I tried one word “Test” 😉

But I made some investigations:

I use a doorbell sound from the URL [https://cdn.smartersoft-group.com/various/pull-bell-short.mp3](https://cdn.smartersoft-group.com/various/pull-bell-short.mp3) which is reachable every time, the URL is Base64 encoded:

aHR0cHM6Ly9jZG4uc21hcnRlcnNvZnQtZ3JvdXAuY29tL3ZhcmlvdXMvcHVsbC1iZWxsLXNob3J0Lm1wMw

With the sonos node server of “sonos say” on Homey the Sonos URL call on my system is:

`http://192.168.69.xx:5005/Sonos Büro Jörg/sayurl/aHR0cHM6Ly90bXBmaWxlcy5vcmcvZGwvOTMwODM5L2ZldWVyYWxhcm0tZWluZ2FuZy5tcDM/50/10`

Played the sound without any problems.

But the same procedure with a fresh uploaded file to [https://tmpfiles.org/](https://tmpfiles.org/) got me the same error like with your sound examples.

Don’t know why but I think the problem could be [https://tmpfiles.org](https://tmpfiles.org).

I use a homey early 2019 and a pure sonos S1 system, no S2 devices.

---

<div class="post-metadata">

**Author:** ![Glenn\_Dijkstra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/glenn_dijkstra/32/17251_2.png) [@Glenn\_Dijkstra](https://community.homey.app/u/Glenn_Dijkstra)\
**Post date:** [February 12, 2023, 10:46am UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/154 "2023-02-12T10:46:56Z")

</div>

Only Google

---

<div class="post-metadata">

**Author:** ![Martin\_Verbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin_verbeek/32/10641_2.png) [@Martin\_Verbeek](https://community.homey.app/u/Martin_Verbeek)\
**Post date:** [February 12, 2023, 12:17pm UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/155 "2023-02-12T12:17:41Z")

</div>

Had the same feeling yesterday, using simple url now, was going to change to base64audio call next. Will give you a ping when version with this is on HCS…thanks again

Martin Verbeek

---

<div class="post-metadata">

**Author:** ![Martin\_Verbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin_verbeek/32/10641_2.png) [@Martin\_Verbeek](https://community.homey.app/u/Martin_Verbeek)\
**Post date:** [February 12, 2023, 12:54pm UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/156 "2023-02-12T12:54:52Z")

</div>

I indeed have an S2 system. But might be able to create an S1 (i have an older Play3 around). base64 did not immed gave me the result i expected.

Will take some time.

---

<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:** [February 13, 2023, 9:10am UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/157 "2023-02-13T09:10:11Z")

</div>

Hi @Martin_Verbeek , can you please tell us, now I see two apps in the HCS, is that a mistake or intention ?

## Cast a text to Google and Sonos

> **[Homey Community Store](https://store.homey.community/app/com.google.tts)**
>
> The Homey Community Store (HCS) provides an alternative App Store for your Homey.

## Cast Text to Google

> **[Homey Community Store](https://store.homey.community/app/com.verbem.castTTS)**
>
> The Homey Community Store (HCS) provides an alternative App Store for your Homey.

On SONOS devices, just a note that there is app developed by Emilie / Athom…

> **[Sonos | Homey](https://homey.app/en-us/app/com.sonos/Sonos/)**
>
> A Better Way to Listen

_(seems quite faulty based on user reviews)_

---

<div class="post-metadata">

**Author:** ![Martin\_Verbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin_verbeek/32/10641_2.png) [@Martin\_Verbeek](https://community.homey.app/u/Martin_Verbeek)\
**Post date:** [February 13, 2023, 9:21am UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/158 "2023-02-13T09:21:50Z")

</div>

Let me check when at home.

Martin Verbeek

---

<div class="post-metadata">

**Author:** ![Martin\_Verbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin_verbeek/32/10641_2.png) [@Martin\_Verbeek](https://community.homey.app/u/Martin_Verbeek)\
**Post date:** [February 13, 2023, 3:49pm UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/159 "2023-02-13T15:49:44Z")

</div>

Able to create the issue with an S1 device, waiting on feedback from library developer.

---

<div class="post-metadata">

**Author:** ![Martin\_Verbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin_verbeek/32/10641_2.png) [@Martin\_Verbeek](https://community.homey.app/u/Martin_Verbeek)\
**Post date:** [February 13, 2023, 3:53pm UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/160 "2023-02-13T15:53:15Z")

</div>

looks like i have pushed two id’s. I will ask Max to have one removed. 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 13, 2023, 5:52pm UTC](https://community.homey.app/t/google-text-to-speech-tts/29770/161 "2023-02-13T17:52:15Z")

</div>

Do you send correct file-types with it?  
Else, S1 will not work.

See the (easy to read) sourcecode for the Soundboard app.

[Previous page](https://community.homey.app/t/google-text-to-speech-tts/29770.md?page=7)

[Next page](https://community.homey.app/t/google-text-to-speech-tts/29770.md?page=9)
