Overview
Whisper can translate speech from any supported language directly to English. This is different from transcription, which converts speech to text in the same language.Translation is a speech-to-English task. Whisper translates the spoken audio directly to English text, not the transcribed text.
Model Requirements
Supported Models for Translation
tiny- Fastest, lower accuracybase- Good balance for simple translationsmall- Better accuracymedium- Recommended for translation taskslarge- Highest accuracy
Models That Do NOT Support Translation
turbo- Returns original language even with--task translatetiny.en,base.en,small.en,medium.en- English-only models
CLI Usage
Basic Translation
Translate Japanese speech to English:Translation vs Transcription
- Transcription
- Translation
Returns text in the original language:Output: “こんにちは、世界!”
Automatic Language Detection
You can omit the language parameter for automatic detection:Processing Multiple Files
Python API
Basic Translation
Specify Source Language
Get Segment-Level Translations
Advanced Translation Techniques
With Initial Prompt for Context
Provide context to improve translation quality:Compare Original and Translation
Batch Translation
Lower-Level Translation API
UseDecodingOptions for fine-grained control:
Translation with Word Timestamps
Common Use Cases
Subtitle Generation for Foreign Films
Real-Time Translation API
Multilingual Meeting Transcription
Supported Languages
Whisper can translate from any of its 99 supported languages to English. Some examples:- Spanish (
es) → English - French (
fr) → English - Japanese (
ja) → English - German (
de) → English - Chinese (
zh) → English - Russian (
ru) → English - Korean (
ko) → English - Arabic (
ar) → English