Skip to content

Added option to force the language#14

Open
TeoColuccio wants to merge 2 commits into
m1guelpf:mainfrom
TeoColuccio:main
Open

Added option to force the language#14
TeoColuccio wants to merge 2 commits into
m1guelpf:mainfrom
TeoColuccio:main

Conversation

@TeoColuccio

Copy link
Copy Markdown

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

kiam001 commented Oct 29, 2022

Copy link
Copy Markdown

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