definitio / ha-rhvoice-addon

RHVoice Home Assistant add-on based on rhvoice-rest
MIT License
4 stars 1 forks source link

[Question] Caching generated phrases, why? #3

Closed 7floor closed 3 months ago

7floor commented 3 months ago

It seems that RHVoice addon caches generated files somewhere on file system: Using HA Media Viewer's TTS feature:

Two issues with that:

One more thought - can it be made not to use real file system for mp3 generation at all? Can it use /tmp/cache or /dev/shm or whatever else on tmpfs instead? SD card life is a concern.

definitio commented 3 months ago

The addon doesn't use cache. It's HA cache. You can disable it with cache option is action.