Specifying the language of the transcription #7
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Whisper sometimes gets confused about the language of a file. This means that we need to be able to optionally specify a language when submitting a job, and pass that language on to the backend.
The backend accepts an optional
language
parameter as a top-level key in the job specification.The format of the language key is the two-letter ISO-639-1 language code. Real-life use will probably only see
en
andsv
occur, but whisper can handle a number of languages, see here.What subset to allow is unclear. One option would be to allow any language to be passed and let users deal with the consequences of their choice.
Whisper will auto-detect the language if the key is missing or has a null value. This should be the default.