Whisper detects the spoken language automatically when you give it no language flag — and most of the time that works. But auto-detection is a guess made from the first seconds of audio, and on a short clip, a quiet opening, or a recording with more than one language in it, the guess can be wrong and the whole transcript comes out in the wrong language. If you already know what language the recording is in, say so: one flag skips the guess entirely. This is different from detecting the language first, and different again from translating into English.
Transcribe with the language you know
Whisper’s own README gives the pattern for a non-English recording, using the full language name:
whisper japanese.wav --language Japanese
The language can also be given as a short code, which a Whisper command-line guide shows for English: whisper your_file.mp4 --language en --model small --output_format txt. Either form works — the name or the code — and the guide says specifying the language gives faster, more accurate results when you know the file’s language. See the tokenizer.py file in the Whisper repository for the list of all available languages.
Check the transcript is in the right language
Run the command on a practice recording whose language you know, and check the result against this table:
| Recording | Command | Transcript should be |
|---|---|---|
japanese.wav (spoken Japanese) |
whisper japanese.wav --language Japanese |
Japanese text, matching what was said |
practice-note.wav (spoken English: “The lighthouse keeper named Mara checked the lamp at noon.”) |
whisper practice-note.wav --language en --model tiny |
English text with the sentence about Mara and the lamp |
The default model is turbo (809 M parameters, about 6 GB of VRAM, about 8x the speed of the large model in the README’s table); tiny is the smallest at 39 M parameters and about 1 GB of VRAM. Whisper also needs ffmpeg installed separately — the README’s setup section lists it first.
| Check | What you should see | If you do not see it |
|---|---|---|
| Language | The transcript is in the language you named | The flag was misspelled or omitted, so Whisper auto-detected — check the command and run it again |
| Content | The words match what was actually said | The wrong language was named — the flag forces the language, it does not correct a wrong choice |
| File | A transcript file sits next to the recording | Add --output_format txt to write a plain-text transcript |
Expected result. We checked OpenAI Whisper’s own README for the –language example, the model table, and the ffmpeg requirement, and a third-party Whisper guide for the language code form and the faster, more accurate claim. We did not run Whisper.
Limits
The flag tells Whisper which language to transcribe in; it does not translate. To translate non-English speech into English, use --task translate with a multilingual model — and note the README’s warning that the turbo model is not trained for translation, so use medium or large for the best translation results. A recording that genuinely mixes two languages will still be forced into one, so pick the language that dominates the recording. The practice sentence above is fictional; use your own recording and check the transcript against what was said. We did not run Whisper, so no transcript here is a recorded result.
Sources
- OpenAI Whisper README — whisper japanese.wav –language Japanese, whisper japanese.wav –model medium –language Japanese –task translate, turbo not trained for translation, default model turbo, model size table, ffmpeg requirement, see tokenizer.py for the list of all available languages
- Whisper on Mac guide (third-party) — specify the language with –language en or –language English for faster, more accurate results, whisper –language en –model small –output_format txt
