Docs on tts google_say settings?

HI, trying to finetune TTS and google_say, I can’t find anything in the docs on settings like this, nor in the source_code:

  - platform: google_translate
    service_name: google_say
    language: 'it'
    cache: true
    cache_dir: /tmp/tts
    time_memory: 300

cache: and cache_dir: seem to speak for themselves, but where is this documented? I also found tts scripts with the cache: false setting added, indicating that specific script shouldn’t be cached?

I didn’t have any of these settings, and only by coincidence found about 1200 recorded messages in my tts folder…

what is the advantage of the cache, is it to speedup frequently used (I take it fixed) messages? No use caching messages that change all the time I would think?

if I set it like this:

  - platform: google_translate
    service_name: google_say
    cache: false

am I correct assuming that’s the global setting for HA, and don’t need extra settings on cache per script using the tts.google_say service? Unless Id like to do cache a dedicated script?

then, there’s the time_memory: I found. What does that do?

the language: doesn’t really seem to matter, because I can add any language to the scripts, without having them in the configuration at all…

please help me find out about the basics…

1 Like

I agree… One of the most frustrating things about the HA documentation is where it is so incomplete that it doesn’t even mention all the config options, let alone document what they do and how it works.

I don’t even know how you found those extra options but I too am interested in answers to some of the questions you ask!!

As an aside, I long ago discovered that my tts folder was filling up so I wrote a nightly automation to clear it. There is even a dedicated service to do this…

  #== Clear the TTS cache 
  - alias: System Clear TTS Cache
      platform: time
      at: '03:00:00'
      service: tts.clear_cache

See and

Thanks, I stand (somewhat) corrected…

The link to this doc from the actual Google Translate Text-to-Speech page is not exactly well signposted. Although now I know those links on the right panel might add relevant information I’ll remember to look in future :wink:

Thanks again for the pointer.

tbh, I still don’t see it in the right panel…where did you find this? entering tts in the integrations page reveals a sub_set of the available integrations …(google, microsoft etc aren’t listed):

clicking one of these gives a link in the right side to but then only the integrations are displayed:

the page @nickrout lists (thanks! exactly what I was searching for) is nowhere to be found, coming from either of these integrations?

anyway, having said that, the doc now at least confirms my thoughts about the language: variable: It isn’t there. While it is listed under google_translate…

So there are global tts variables and per integration variables, which makes sense I guess…

still, this is a bit confusing:

The following optional parameters can be used with any platform. However, the TTS component will only look for global settings under the configuration of the first configured platform:

what is the first platform… I have them configured in packages. Also, does this mean we can set ‘global’ variables on the ‘first’ platform, and assume the same settings are used for the others if no variables are set. Which would imply we could set variables with different values if so desired, or the dedicated platform variables (in this case the language setting which is valid for Google TTS) or the many configurable ones for eg Microsoft tts, which is what I was looking for. (really don’t like the single female voice Google offers… especially in my native language…

all in all, this is not as clear as it could be… needs further experimenting, which of course is always fun to do :wink:

Did you find it?

And let me know how you get on with Microsoft TTS. I tried a while back and crashed my system!!! I wasn’t the only one, when I posted here to ask if anyone used it at least one other person had the same problem as me. It was a long time ago though…

No, its what I posted above, clicking that link leads me to

and not to

Well that’s weird… You’re right.
So how on Earth did I find it earlier on??

that’s not so weird…

don’t know :wink:

probably because @nickrout told us where to look…

Yeah, but I said,

Now I 'm not so sure I do :thinking:

well, I already wondered about that …

without jest, I still have some uncertainties about configuring it all.

using this though seems to work smoothly:

  - platform: google_translate
    service_name: google_say
    cache: false

no more caching, as I don’t see why it should in the first place (not explained, and all my messages are created on the fly in the first place. caching only takes disk space and causes read/write operations, which as I understand it take life form your SD’s…)

I can select any language in my setup, and it starts speaking funny :wink:



Nice. I’m going to play with the language setting too.
I’m in the process of re-writing my announcement package, and my settings page is bigger than yours

don’t get me started…I’ve only shown you a weeny tiny bit

lol. keen to learn where you end up though. please keep us up to date

I can imagine! :wink: