Google Text-to-Speech


The google text-to-speech platform uses Google Text-to-Speech engine Text-to-Speech engine to read a text with natural sounding voices.

Configuration

To enable text-to-speech with Google, add the following lines to your configuration.yaml:

# Example configuration.yaml entry
tts:
  - platform: google

Configuration Variables

language

(string)(Optional)The language to use.

Default value: en

Check the complete list of supported languages (languages where “Talk” feature is enabled in Google Translate) for allowed values. Use the 2 digit language code which you can find at the end of url when you click on Language name.

Full configuration example

A full configuration sample including optional variables:

# Example configuration.yaml entry
tts:
  - platform: google
    language: 'de'

If you are using SSL certificate or Docker, you may need to add the base_url configuration variable to your http component as follows:

#Example configuration.yaml entry
http:
  base_url: example.duckdns.org

The base_url configuration variable was added in 0.35.1, so make sure your Home Assistant version is 0.35.1 or above.