Multi language change with Voice PE

Hey!

So ive been also trying to get a multi language for the Voice PE, been searching far and wide but did not really find anything…

I dont know if this will be useful for anyone or if its the most efficient way.

I created a different pipline for each language (im using the Gemini API for them)

Now i can give a voice command to change the language back and forth between Estonian, Russian, and English.

Though I always have to say “Hey Jarvis” regardless of the current language and to change the language between them i have to use the current language, it works.

Could be improved upon to change the language to English after a certain time frame, and the wake word could be change the same way for each language.

Hope this helps - here is the automation (someone can probably turn it into a blueprint)

alias: Change Voice Assistant Language
description: Changes the voice assistant language based on voice commands.
triggers:
  - command:
      - Estonian
      - эстонский
      - Eesti keel
    trigger: conversation
    id: "0"
  - command:
      - Russian
      - Vene keel
    trigger: conversation
    id: "1"
  - command:
      - English
      - Inglise keel
      - английский
    trigger: conversation
    id: "2"
conditions: []
actions:
  - choose:
      - conditions:
          - condition: trigger
            id: 0
        sequence:
          - data:
              entity_id: select.voice_pe_assistant
              option: Jarvis(Gem) Est
            action: select.select_option
      - conditions:
          - condition: trigger
            id: 1
        sequence:
          - data:
              entity_id: select.voice_pe_assistant
              option: Jarvis(Gem) Rus
            action: select.select_option
      - conditions:
          - condition: trigger
            id: 2
        sequence:
          - data:
              entity_id: select.voice_pe_assistant
              option: Jarvis(Gem) Eng
            action: select.select_option
mode: single

I did something similar to what you’re trying to do, except I was changing which assistant it used after a certain time.

What I did, was set an automation that is triggered by the voice assistant media player being idle for a set amount of time. When it triggers I set the assistant back to the one I want. You’d want to change the language, I guess.

Yeah,

I’m Estonian, and wife is Russian.

We both mostly use English commands, but when we want to play songs from our countries then we need our native language since English will not work with them.
Really the only reason we needed multi language support…

Been playing around with Music assistant and it works well now!