Skip to content

Language support #2649

Answered by neuquenfr
LeonardoHSilva asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @LeonardoHSilva,

I use the following code:

action: tts.google_say
data:
cache: false
entity_id: media_player.dot_del_escritorio
language: "{{states ('input_select.msg_language')}}"
message: "'{{states ('input_text.msg_wildcard')}}"

The "tts.google_say" command works well with both Google and Alexa.
At each message I send to Alexa,

  1. I place the language ("es", "en", "fr") in input_select.msg_language (from a SELECT button);
  2. I use input_text helpers containing my fixed messages ("hola", "hello", "salut") of which the name ends with the 2 letters of the language code ("input_text.msg_blabla_es", "input_text.msg_blabla_en", "input_text.msg_labla_fr"). The container of the message is cal…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LeonardoHSilva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants