Skip to content
Discussion options

You must be logged in to vote

The following would be equivalent (realizing the function's name may be causing confusion):

import whisper

model = whisper.load_model("small")
result = model.transcribe("japanese.wav", language="Japanese", task="translate", beam_size=5, best_of=5)

The last two arguments are just to match the default arguments in the command line, and larger model than small will be more reliable especially for translations.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jongwook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants