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

Added option to force the language #14

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

TeoColuccio
Copy link

It would be convenient to be able to force the language instead of having it established by the transcriber, as it sometimes makes mistakes.
I have seen that whisper uses the --language option for this very purpose, through the DecodeOptions you already use in the model.transcribe().
So I just added the option and setting of the args ["language"] variable for valid values.
Note that when checking conditions, the "model" comes last, so that it overrides the "language" option itself.

@kiam001
Copy link

kiam001 commented Oct 29, 2022

works thx for nice commit <3

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

Successfully merging this pull request may close these issues.

2 participants