-
For example: What would be the python equivalent of:
Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
jongwook
Sep 30, 2022
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jongwook
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following would be equivalent (realizing the function's name may be causing confusion):
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.