linto-ai/whisper-timestamped
Whisper extension using cross-attention and DTW for word timestamps and confidence
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
whisper-timestamped extends Whisper in Python rather than introducing a separate recognizer. load_model selects the openai-whisper or transformers backend, and transcribe(model, audio, ...) accepts a file path, NumPy array, or PyTorch tensor. The core requirements are Cython, dtw-python, and openai-whisper; FFmpeg is a system prerequisite for the documented installation path.
The alignment stage applies dynamic time warping (DTW) to Whisper's cross-attention weights to estimate word starts and ends. Under compatible decoding settings, including greedy decoding where applicable, it can align each segment after decoding without a separate inference pass. Optional VAD filters the input before recognition. This is an embeddable transcription and alignment pipeline, not a standalone model server.
Key Capabilities & Differentiators
The Python API supports multilingual transcription, translation into English, and automatic language detection with language probabilities when no language is specified. The loader accepts Whisper identifiers such as large-v3 and medium.en, compatible local checkpoints or directories, and Hugging Face identifiers, including fine-tuned models. Loading a local checkpoint still requires a file format compatible with the chosen backend.
The result adds a words list to each segment and provides word and segment confidence scores, with word confidence enabled by default. Disfluency marking is optional. refine_whisper_precision defaults to 0.5 seconds and accepts multiples of 0.02 seconds; this is a tuning constraint, not a timestamp accuracy guarantee. The whisper_timestamped CLI supports batch file input, adds CSV, and writes additional word-timed SRT, VTT, and TSV files.
Trade-offs & Limitations
Compared with WhisperX-style wav2vec alignment, cross-attention DTW avoids running an additional alignment network and finding one for each language. It also avoids converting Whisper output such as numerals and symbols to an external aligner's character inventory. Compared with alignment based on timestamp-token probabilities, it does not depend on Whisper assigning a meaningful timestamp immediately after each word. Neither design choice guarantees better boundaries on a particular corpus.
The default greedy decoding settings favor efficiency and disable beam search and temperature fallback, so switching from plain Whisper can change the transcript as well as its timing. Use matched decoding settings when comparing results; --accurate provides a CLI preset, but beam search can increase the work needed for alignment. VAD can reduce spurious text on silence, but it adds a preprocessing stage. Benchmark transcription quality, timing, and throughput before rollout, and assess AGPL-3.0 obligations before distributing or operating a modified network-facing version.
Hardware & Deployment Guide
Install with pip install whisper-timestamped and provide FFmpeg. Python 3.7 or newer is listed, with 3.9 recommended and used by the main Dockerfile. For a lighter CPU setup, install CPU-only PyTorch first. The standard build uses Dockerfile (about 9 GB); the separate Dockerfile.cpu build is about 3.5 GB. These are image sizes, not memory requirements.
Models can run locally once compatible weights and dependencies are present; a model hub download may be needed on first use. The repository provides a Python API and CLI, not an evidenced HTTP service or WebSocket streaming endpoint. Size CPU or CUDA workers against the chosen model, decoding options, and concurrency. The latest listed release is v1.15.9 on September 9, 2025, following v1.15.8 and v1.15.7 on November 25, 2024; those dates do not establish what changed.
--accurate restores Whisper-style beam search and temperature fallback.load_model supports Whisper model names, compatible local checkpoints, and Hugging Face models through openai-whisper or transformers.Dockerfile.cpu provides a separate CPU build path.Local or self-hosted batch transcription for word-synced subtitles, searchable recordings, and review tools that need word boundaries and confidence scores across languages.
You need a turnkey real-time streaming API, plain Whisper already meets your output requirements, or your deployment cannot meet AGPL-3.0 obligations.
Quick Start & Installation
pip3 install whisper-timestampedComparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| whisper-timestamped ★ | 2.9k | +3 | Python | AGPL-3.0 | Whisper extension using cross-attention and DTW for word timestamps and confiden |
| whisperX | 26.5k | +677 | Python | BSD-2-Clause | Batched Whisper with forced alignment for word timings and optional speaker labe |
| Speech | 18.8k | +18 | Python | Apache-2.0 | PyTorch speech SDK for training, adapting, and running ASR, TTS, and SpeechLM mo |
| PaddleSpeech | 12.7k | — | Python | Apache-2.0 | PaddlePaddle-based SDK for local and streaming speech recognition and synthesis |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/linto-ai/whisper-timestamped.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about whisper-timestamped
How do I integrate word-level alignment into an existing transcription worker?
whisper_timestamped.load_model, then call whisper_timestamped.transcribe(model, audio, ...) for each input. Pass a file path or a NumPy or PyTorch waveform. The result includes segments[].words with word boundaries and, by default, confidence scores. Use language when known, or allow automatic detection. The API here is a Python interface; an HTTP service would be a separate integration.How should I size CPU, GPU, and memory for production?
Can I self-host it in a commercial transcription service?
When should I choose it over plain Whisper or WhisperX?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy