#TTS MP3 files being kept
1 messages · Page 1 of 1 (latest)
you have a cache option for that, which you can turn off
I'll have to hunt for that.
The setting for cache is only on say or message. A lot of the MP3s are default responses for stuff like "What is the time?"
Oh, you mean Assist responses?
So, if you invoke tts.say you can explicitly state whether you want to cache the generated audio or not. By default it's off
By contrast, when uaing Assist, all responses are cached and that's a good thing in my book (e.g. no point in re-rendering "turned on lights")
It's a good idea to make that a user-facing option, but you'd need to add a feature request for it. Indeed, time queries don't really make sense to be cached
I think there's also a service call you can run to clear the cache if you want
tts.clear_cache
Would be super cool to have that on per-intent level. I have morning routine message (weather, calendar, to-do), it's long and different every time.
What about if the file size is x then don't cache. That would cover the longer tailored replies.
I think that logic is far more complicated than per-intent caching and far, FAR more complicated than Assist caching on or off
We do things the less complicated way? I must write that down to remember. 😜