# Repository Briefing: linto-ai/whisper-timestamped
> Source: https://repoforai.com/repo/linto-ai/whisper-timestamped (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/linto-ai/whisper-timestamped
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Python
- **License**: AGPL-3.0
- **Engineering Health**: B (57/100 · Maintenance 20/35 · Adoption 15/25 · Releases 11/20 · License 11/20)
- **Latest Release**: v1.15.9 (2025-09-09) — https://github.com/linto-ai/whisper-timestamped/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, Local AI, CLI, GPU, API
- **Momentum**: 2,861 ★ total (+0 24h / +3 7d) · 213 forks
- **Topics**: `asr`, `attention-is-all-you-need`, `attention-mechanism`, `attention-model`, `attention-network`, `attention-seq2seq`, `attention-visualization`, `deep-learning`, `machine-learning`, `multilingual-models`, `python`, `python3`
- **When to Use**: Best for: Local or self-hosted batch transcription for word-synced subtitles, searchable recordings, and review tools that need word boundaries and confidence scores across languages. Skip if: You need a turnkey real-time streaming API, plain Whisper already meets your output requirements, or your deployment cannot meet AGPL-3.0 obligations.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Alignment: Dynamic time warping maps Whisper cross-attention to word boundaries without a separate language-specific aligner.
- Decoding: Greedy decoding can reuse the recognition pass for alignment; `--accurate` restores Whisper-style beam search and temperature fallback.
- Model loading: `load_model` supports Whisper model names, compatible local checkpoints, and Hugging Face models through `openai-whisper` or `transformers`.
- Speech filtering: VAD is off by default and accepts Silero, Auditok, or caller-supplied speech intervals.
- Output contracts: JSON contains word boundaries and confidence; the CLI also supports CSV and additional word-timed SRT, VTT, and TSV files.
- Local deployment: The Python library and CLI run on CPU or CUDA when available; `Dockerfile.cpu` provides a separate CPU build path.
```

## Quick Start / Clone
```bash
pip3 install whisper-timestamped
```
