Basic Google TTS

Hi guys,

What am I doing wrong here? It seems so basic to set up TTS but I can’t make it work!

Configuration.yaml:

tts:
  - platform: google_translate
    cache: true
    cache_dir: /tmp/tts
    time_memory: 300
    base_url: https://MASKED.duckdns.org:8123/

Test in ‘developer tools’ > ‘services’:

Service: tts.google_translate_say

service: tts.google_translate_say
entity_id: media_player.quarto_do_leo
data:
  message: 'May the Force be with you.'
  language: 'en'

I get this error: Failed to call service tts/google_translate_say. extra keys not allowed @ data[‘service’]

https://community.home-assistant.io/t/tts-status-500-error/259200

I use my internal IP for the base_url:

- platform: google_translate
  base_url: http://192.168.0.14:8123

Failing that, try moving the entity_id into the data section.

service: tts.google_translate_say
data:
  entity_id: media_player.quarto_do_leo
  message: 'May the Force be with you.'
  language: 'en'
1 Like