Wavenet support in tts

Hi all, I’ve been enjoying hacking on homeassistant a bit recently, and wanted wavenet voices.

This gist can replace google.py in components/tts – once you’ve set up your GCP wavenet account it will work; it works well for me, and faster than the google translate API being used in the default code.

I have no interest in getting this fully integrated as a plugin, writing tests and so on, but you all should feel free to do what you want with this.

I ripped out the message chunking; the thinking is that this is a paid API so why not? Hass doesn’t have great support for choosing voices realtime, so for fun, the code defaults to French, but changing the default language is pretty easy.

3 Likes