Mozilla has built a TTS engine that works locally. It would be awesome if Home Assistant could use this engine so we don’t have to rely on cloud services for TTS.
In case you want to test Mozilla TTS, it’s surprisingly simple thanks to a Docker image by Michael Hansen.
Note: It needs a lot of RAM, it won’t work in 1GB raspberries.
First set up configuration.yaml
for marytts API, our bridge to the local Mozilla TTS server.
tts:
- platform: marytts
Restart HASS to apply changes.
Then go to the main HASS terminal, and run the following command:
docker run -it -p 59125:5002 synesthesiam/mozillatts:en
(replace “en” with your language: en, es, fr, de
)
That’s it! You can use Mozilla TTS from HASS. Let me know if it works for you too!
Downside of this approach is that you’ll need to run it after each reboot.
Anybody with experience to turn this into a HASS plugin?
3 Likes