Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wishper translating command to the default language of the container. #29

Open
davidrpfarinha opened this issue Mar 13, 2024 · 1 comment

Comments

@davidrpfarinha
Copy link

Hey there,

When using Wishper as source for translation of my Assist within Home Assistant, I'm using Portuguese as the language.
Although, for it translates my sentence to English which then seem to make the Assist to be able to recognize the command.
image

Did I misconfigure something? I don't think so, as it was working in the past, and if I run the text pipeline, it does work as expected.
image
image

Container config

whisper:
container_name: whisper-english
image: rhasspy/wyoming-whisper:latest
command: --model base-int8 --language en
volumes:

  • /volume1/docker/whisper-english:/data
    environment:
  • TZ=Europe/Lisbon
    restart: unless-stopped
    network_mode: "host"
    ports:
  • 10300:10300

If I change the container default language to pt, it does stop doing that, although, that means that I'm not able to use the same container for both portuguese, and english. On top of that, if I want to have two containers, even if I change the default port, it keeps trying to use the 10300, and given that there is already a container, it will not launch.

Cheers

@peteh
Copy link

peteh commented Apr 29, 2024

Two containers:

You could instantiate two containers and you have to change the first port number in your docker-compose to use a different port. The second one is the internal one and should not be changed.

Both languages in one container
If you want it to be able to handle both portuguese and english, you have to set the language option to "auto" according to the code (or maybe not set it at all in the parameters). Not setting the language is more expensive and will use more compute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants