ahmetoner / whisper-asr-webservice

OpenAI Whisper ASR Webservice API
https://ahmetoner.github.io/whisper-asr-webservice
MIT License
2.11k stars 379 forks source link

How to set 'language parameter' #225

Closed zodac closed 4 months ago

zodac commented 5 months ago

When I start up the service in docker, I see the following log entry on start-up: The current model is English-only but the language parameter is set to 'ja'; using 'en' instead.

Is there an environment variable to set to configure this?

Currently the only environment variables I pass in are the following two:

    environment:
      ASR_MODEL: "small.en"
      ASR_ENGINE: "faster_whisper"
e950280 commented 4 months ago

Because the model you are using is small.en, and it only has the ability to translate English, but you want to get the output of ja.

BTW, XXX.en means it only handles English.

zodac commented 4 months ago

Ahh, I see, that was silly of me. It's an issue with the file, not the service itself. Ok, that makes sense. Thanks for pointing that out. :)