Whisper is a speech recognition model trained on diverse audio. It supports multilingual transcription, speech-to-English translation, and language identification via Python or the command line.
Overview
Whisper is presented as a general-purpose speech recognition system trained on a large, varied audio dataset. A single multitask model handles multilingual speech recognition, speech translation into English, spoken language identification, and voice activity detection within one sequence-to-sequence Transformer framework.
Training couples several speech tasks by representing them as token sequences for the decoder, using special tokens to specify tasks or classification targets. This design is meant to replace multiple stages of a conventional speech-processing pipeline.
Installable releases ship through pip as openai-whisper, with optional installation from the latest repository commit. Runtime use depends on Python, PyTorch, supporting Python packages such as tiktoken, and the ffmpeg command-line tool. Multiple model sizes—from tiny through large and turbo—offer tradeoffs among accuracy, memory, and speed, including English-only variants for some sizes.
The command-line interface transcribes audio files and supports language selection and translation tasks, with multilingual models recommended when translating non-English speech to English. Python APIs expose high-level transcribe() as well as lower-level detectlanguage() and decode() routines that process audio in sliding thirty-second windows.
Key features
- Multilingual speech recognition
- Speech-to-English translation
- Spoken language identification
- Voice activity detection
- Multiple model size options
- Command-line transcription
- Python transcribe API
- Sliding-window audio processing
Use cases
- Transcribing recorded audio files
- Translating non-English speech to English
- Detecting spoken language in audio
- Embedding speech recognition in Python apps
- Choosing speed versus accuracy by model size