ahmetoner / whisper-asr-webservice

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

How to set 'language parameter' #225

Closed zodac closed 3 months ago

zodac commented 3 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 3 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 3 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. :)