openai-whisper
Robust Speech Recognition via Large-Scale Weak Supervision
What it is and what it does
Whisper is OpenAI's general-purpose speech recognition model that transcribes, translates, and identifies languages in audio. It uses a Transformer sequence-to-sequence architecture trained on diverse multilingual audio data, allowing a single model to handle multiple speech-processing tasks that traditionally required separate pipeline stages. The model comes in six sizes (tiny, base, small, medium, large, turbo) with English-only and multilingual variants, offering speed-accuracy tradeoffs from ~1 GB to ~10 GB VRAM.
You can use it via command-line (e.g., `whisper audio.mp3 --model turbo`) or Python API. It processes audio in 30-second sliding windows and supports language specification and translation tasks. Installation requires torch, numba, triton, and other heavy numerical libraries, plus ffmpeg on your system. The package is actively maintained and has no known vulnerabilities.
Use it for:
- Transcribe English audio files quickly using the turbo model for real-time or batch processing
- Translate non-English speech to English by specifying language and task parameters
- Identify the spoken language in an audio file before further processing
- Build a speech-to-text pipeline that handles multiple languages with a single model
- Process audio in Python with fine-grained control via lower-level APIs like detect_language() and decode()
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Whisper performs multilingual speech recognition, speech translation, and language identification using a Transformer model trained on diverse audio data.
Yes, if you have the system dependencies and can tolerate high install friction. Whisper is actively maintained, permissively licensed, widely used (top 5000 packages), and has no known vulnerabilities. The heavy numerical dependencies (torch, numba, triton) are unavoidable for the task. Install only if you need multilingual speech recognition or translation; for English-only transcription, smaller or specialized models may be more practical.
Install
openai-whisper on PyPI
pip
pip install openai-whisperuv
uv add openai-whisperpoetry
poetry add openai-whisperInstalling openai-whisper
Before you install
High install friction: requires torch, numba, triton, and other heavy numerical dependencies. Also requires ffmpeg as a system dependency and may need Rust installed if tiktoken lacks a pre-built wheel for your platform. Maintenance is active with recent commits.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it suitable for most projects.
Quickstart
pip install openai-whisper
import whisper
model = whisper.load_model("turbo")
result = model.transcribe("audio.mp3")
print(result["text"])
Requires ffmpeg installed on your system (apt/pacman/brew/choco/scoop). May also require Rust if tiktoken has no pre-built wheel for your platform.
Verify before relying
- Whether pre-built tiktoken wheels cover common platforms or if Rust compilation is frequently needed
- Real-world transcription speed and accuracy on languages beyond English
- Memory and compute requirements for models beyond the documented VRAM estimates
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | high — source build required |
| Runtime dependencies | 7 — more-itertools, numba, numpy, tiktoken, torch, tqdm, triton |
| Maintenance | actively maintained — 414 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 4,241,268/month — #2,355 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: openai_whisper-20250625.tar.gz
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
faster-whisperTranscribes audio to text using OpenAI's…
permissive · top 5,000 on PyPI
lhotseLhotse prepares multimodal (speech, audio,…
permissive · top 5,000 on PyPI
mlx-whisperRuns OpenAI's Whisper speech recognition models…
permissive · top 15,000 on PyPI
SpeechRecognitionPerforms speech recognition and transcription…
permissive · top 5,000 on PyPI
whisper-normalizerStandardizes and normalizes text using the…
permissive · top 15,000 on PyPI
voskVosk provides offline speech recognition for…
permissive · top 15,000 on PyPI
whisper-timestampedAdds word-level timestamps and confidence…
copyleft · top 15,000 on PyPI
whisperxWhisperX performs fast automatic speech…
permissive · top 5,000 on PyPI
pywhispercpppywhispercpp provides Python bindings for…
permissive · top 15,000 on PyPI
omnivoiceOmniVoice generates speech from text in over…
permissive · top 15,000 on PyPI