whisper
Transcribe audio, identify spoken languages, and translate non-English speech into English with an open-source Python model.
- Stars
- 112k
- Forks
- 14k
- Last update
- 31 Aug 2026
Overview
Whisper turns speech in audio files into text through a command-line tool or Python code. It supports multilingual transcription, spoken language identification, and translation into English, with several model sizes offering speed and accuracy tradeoffs.
Who it's for
Tech stack
Features and benefits
Key features
- Multilingual speech recognition
- Translation of non-English speech into English using multilingual models
- Spoken language identification
- Six model sizes with different memory requirements
- English-only variants for tiny, base, small, and medium models
- Command-line transcription of FLAC, MP3, and WAV files
- Python transcription API with lower-level detection and decoding functions
- Optimized turbo model for faster transcription
Why it helps in Pakistan
- Turn recorded speech into text for review and reuse.
- Choose a model that fits your available GPU memory and accuracy needs.
- Add speech recognition to Python applications.
- Translate supported non-English recordings into English.
- Use and adapt both the code and model weights under the MIT licence.
Pakistan use cases
- 01
Pakistani education teams can transcribe recorded English lectures into text for study material.
- 02
Local media teams can turn recorded interviews in supported languages into draft transcripts for editorial review.
- 03
Pakistani software developers can add audio-file transcription to Python business applications.
- 04
Export businesses can translate recorded non-English speech in supported languages into English for staff review.
Requirements
- Hardware
- Approximate model VRAM: tiny/base ~1 GB, small ~2 GB, medium ~5 GB, large ~10 GB, turbo ~6 GB.System RAM and other hardware requirements: Check the official docs.
- Operating system
- WindowsmacOSLinux: Ubuntu, Debian, and Arch installation examples are provided.
- Skills
- Command-line package installationBasic Python for application integration
- Accounts needed
- Check the official docs
Setup guide
Commands are copied from the project's README and official docs.
- 1
Prepare Python
The README expects compatibility with Python 3.8–3.11 and recent PyTorch versions. Check the official docs for installing this environment.Not fully covered in the README. Check the official docs before running this step.
- 2
Install ffmpeg
On macOS with Homebrew, runbrew install ffmpeg. On Windows, use Chocolatey withchoco install ffmpegor Scoop withscoop install ffmpeg. - 3
Install Whisper
Install or update the release withpip install -U openai-whisper. Alternatively, install the latest repository commit withpip install git+https://github.com/openai/whisper.git. - 4
Resolve optional build dependencies
If tiktoken has no pre-built wheel for your platform, follow the linked Rust getting-started guide. For a No module named 'setuptools_rust' error, runpip install setuptools-rust. - 5
Transcribe audio
The documented example iswhisper audio.flac audio.mp3 audio.wav --model turbo. Substitute your own audio filenames. The turbo model requires approximately 6 GB VRAM. - 6
Review available options
Runwhisper --helpto view available options. For speech translation into English, choose a multilingual model other than turbo.
Works with
Import whisper, load a model with whisper.load_model(), and call model.transcribe() to obtain text.
Whisper uses PyTorch; the README expects compatibility with recent versions.
Required command-line dependency installed through your system package manager.
Provides the tokenizer implementation used by Whisper.
What it costs
| Software | Free to self-host under the MIT licence. |
|---|---|
| Hosting | Hosting costs depend on the model and compute provider. The listed models require approximately 1–10 GB VRAM; GPU hosting can cost more than a basic VPS. Check current provider prices. |
FAQ
Is Whisper free for business use?
The code and model weights are released under the MIT licence. Review the linked licence for its terms.
Does Whisper support Urdu?
The supplied README does not explicitly list Urdu. Check the linked tokenizer.py language list before planning an Urdu workflow; performance varies widely by language.
Can turbo translate speech into English?
No. Turbo is not trained for translation and returns the original language even with --task translate. Use another multilingual model; the README recommends medium or large for the best translation results.
Which model should I choose?
Choose according to memory, speed, and accuracy needs. Tiny and base require approximately 1 GB VRAM, while large requires approximately 10 GB. English-only variants tend to perform better for English, especially tiny.en and base.en.
Can I use Whisper from Python?
Yes. The README documents model loading and transcription, plus lower-level language detection and decoding. The transcribe() method reads the whole file and processes it using sliding 30-second windows.
Troubleshooting
Installation fails while building tiktoken.
Install the Rust development environment using the linked getting-started guide if no pre-built wheel is available. You may also need to configure PATH; see the official docs.
Installation reports No module named 'setuptools_rust'.
Run pip install setuptools-rust, then retry the Whisper installation.
Translation returns text in the original language.
Do not use turbo for translation. Select a multilingual model such as medium or large and use --task translate.
ffmpeg is missing.
Install the required ffmpeg command-line tool with the package-manager command documented for your operating system; see the official docs.
Official links
Get it set up for you
Don't want to install it yourself? A Jugaad maker can set up whisper for your business. Payment is held in Safe Deal until it works.
No maker offers a setup gig for this yet. Post a request and makers will quote.
Related tools
Built by openai and contributors on GitHub. All credit goes to the authors. GitHub stats refresh daily. Jugaad does not host, copy or sell this code.
Is this your project?
