forcing model.transcribe to use a particular language #2088
Unanswered
nairajay2k
asked this question in
Q&A
Replies: 2 comments
-
Ok so I think when I use |
Beta Was this translation helpful? Give feedback.
0 replies
-
Did you try |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
import whisper
model = whisper.load_model("base")
result = model.transcribe("someaudiofile.wav",decode_options={'language':'hi'})
Trying to force the transcription to Hindi (hi) but I get
TypeError: DecodingOptions.init() got an unexpected keyword argument 'decode_options'
Pl let me know what I need to do.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions