TTS and Nabu Casa Cloud

Hi,

Im trying to set danish as a default language for tts. I’m using nabu casa Cloud.

When i test this, it’s work fine:

entity_id: media_player.google_mini
message: dette er en test
language: da-dk 

But when I’m sending a tts in danish from the media card in lovelace, the language is English?

I have tried with these settings in configuration.yaml, but it doesn’t work:

tts:
 - platform: google_translate
 - language: da

Remove the dash before language.

tts:
 - platform: google_translate
   language: da

Did you not get any error in the logs?

I Got it to work with these settings:

tts:
  - platform: google_translate
    language: da
    service_name: aaa_google_cloud_say

I’m thinking it’s a bug, but thanks

Why should this be a bug? You had a dash before language, therefore the tts section read this as a separate entry. Each dash represents an entry in the dict. How you had it, it didn’t know that the language belonged to the google_translate entry.