# Google tts ultimate node - questions, kinda

**URL:** <https://discourse.nodered.org/t/google-tts-ultimate-node-questions-kinda/92561>\
**Category:** General\
**Created:** [21 October 2024 22:16 UTC](https://discourse.nodered.org/t/google-tts-ultimate-node-questions-kinda/92561 "2024-10-21T22:16:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [21 October 2024 22:16 UTC](https://discourse.nodered.org/t/google-tts-ultimate-node-questions-kinda/92561/1 "2024-10-21T22:16:53Z")

</div>

Sorry folks, but I just want to ask/check with people about this node.

When I'm logged into that machine and am looking.

```auto
~/.node-red/sonospollyttsstorage $ ls
hailingpermanentfiles ttsfiles ttspermanentfiles ttsultimategooglecredentials

```

`ttsfiles` is/are the temporary files used/needed to get it to _talk_.  
`ttspermanentfiles`...... I'm guessing are permanent files.

But how do I get to use them?

Do I need credentials?

Someone?

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [22 October 2024 15:12 UTC](https://discourse.nodered.org/t/google-tts-ultimate-node-questions-kinda/92561/2 "2024-10-22T15:12:41Z")

</div>

What you wanna do?

Do you want text to spoken in computer speakers? Or in your SONOS speakers?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [22 October 2024 19:36 UTC](https://discourse.nodered.org/t/google-tts-ultimate-node-questions-kinda/92561/3 "2024-10-22T19:36:06Z")

</div>

On the computer's speakers.

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [23 October 2024 05:05 UTC](https://discourse.nodered.org/t/google-tts-ultimate-node-questions-kinda/92561/4 "2024-10-23T05:05:04Z")

</div>

Wasn't this already solved once? Or a new problem?

> [@Playing audio files on remote machine and use their speakers - not the hosts'](https://discourse.nodered.org/t/playing-audio-files-on-remote-machine-and-use-their-speakers-not-the-hosts/82919/32):
>
> Though I am not at that stage yet, the player has other options. I'm not at that page yet, but there may be options to make that part different and send a WAV or MP3 file out.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [23 October 2024 05:36 UTC](https://discourse.nodered.org/t/google-tts-ultimate-node-questions-kinda/92561/5 "2024-10-23T05:36:27Z")

</div>

Well, this is more a _Follow up_ question.

I got it working and it works as I expect.

The whole thing is running on a ... 32 GB SD card.

There are quiet a few messages played and once - a while back - I noticed the SD card was nearly full when usually it isn't.

A quick dig around and I discovered that EVERY message's file was kept in the `ttsfiles` directory.  
Not a big deal, I added some extra code so it deleted the file after a short pause allowing it to be played.

**Yes: I caused this situation by deleting the files.**

But as they ALL aren't needed.

In the course of doing this I did see that if there was an existing file for the same message, it _cached_ getting the file from google. Which is kind of nice and smart - and economical.

So after a bit of messing around I kept the files who get used often - as there are some of them - and thought nothing more of it.

Alas until recently when I was back in that directory and noticed NO FILES AT ALL.  
Eeeek!

Did some more testing and - alas - the code I wrote did work and didn't delete the files, but any subsequent use of the file/s deleted them on their second use.  
(That is stupid - to me)  
But then I thought more about it and saw/realised there is a `ttspermanentfiles` directory also.  
It has a couple of examples but of no use to me.

So: looking at the docs of the node, nada. (Nothing)

I'm wanting to know if there is a way to that if I put the files (or more so: move them) from that original directory to the `permanent` one...... would that work?

Ok, I haven't tested it. I thought I'd ask.  
Can't hurt - can it?

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [23 October 2024 10:17 UTC](https://discourse.nodered.org/t/google-tts-ultimate-node-questions-kinda/92561/6 "2024-10-23T10:17:19Z")

</div>

That is a great explanation of your target. Now I assume people around will better understand what you are looking to achieve. Therefore, I thought I'd ask you, for a better description

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 January 2025 10:17 UTC](https://discourse.nodered.org/t/google-tts-ultimate-node-questions-kinda/92561/7 "2025-01-21T10:17:23Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
