Lightweight faster-whisper batch transcription CLI for researchers
Project description
whisper-wrap
Lightweight Python CLI wrapper around faster-whisper for bulk transcription.
Features
- Batch transcribe audio/video files in a directory
- Output formats:
txt,srt,vtt,json - Always writes per-file output
- Optional merged output via
--merge - Metadata header included (file, duration if available, model, language, device, compute type)
- Progress + summary + per-file errors
Install (uv)
uv sync
Run without installing globally:
uv run whisper-wrap --help
Usage
uv run whisper-wrap /path/to/media \
--model small \
--language en \
--device cpu \
--compute-type int8 \
--threads 8 \
--output-dir outputs \
--format txt \
--recursive \
--ext mp3 --ext wav --ext mp4
Publish
cp .env.example .env
# add PYPI_API_TOKEN to .env
./scripts/publish.sh
Harvard sentences
uv run whisper-wrap harvard --format text
uv run whisper-wrap harvard --format json --limit 10
Attribution: Harvard Sentences (1965 revised list) from https://www.cs.columbia.edu/~hgs/audio/harvard.html (IEEE Transactions on Audio and Electroacoustics, Vol. 17, Issue 3, 1969).
Common flags
--modeldefault:small--languageoptional; omitted means auto-detect--deviceone ofcpu|cuda--compute-typeone offloat16|int8--threadsCPU threads--output-diroutput folder--mergealso write a singlemerged.<format>file--formatone oftxt|srt|vtt|json--metadata/--no-metadatainclude metadata headers (default: on)--extrepeatable extension filter (with or without.)--recursivescan subdirectories
Notes
faster-whisperruntime behavior depends on local FFmpeg and model availability.- For
cuda, ensure compatible CUDA runtime/drivers are installed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file whisper_wrap-0.1.0.tar.gz.
File metadata
- Download URL: whisper_wrap-0.1.0.tar.gz
- Upload date:
- Size: 1.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20f97bed50b344d8df5cecf49f41a8f507efd472e6956b6e2a69d503a4a3a751
|
|
| MD5 |
0b0b5b7da96eba7bc4713e0958eda34d
|
|
| BLAKE2b-256 |
f0d4e1e18dd921113a870e6f442f532ae649b167614b4145914250e9c526d1f1
|
File details
Details for the file whisper_wrap-0.1.0-py3-none-any.whl.
File metadata
- Download URL: whisper_wrap-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ac3a1669ee1925a261d6baf6d76759c77023efef6b3ec5c00caf08b24a9b294
|
|
| MD5 |
2f6d130b27ec09bd62e58c332802d13e
|
|
| BLAKE2b-256 |
04dbe70661fca387e469e476d8a28b680f22cfb02725ff37b1d804c7f9559798
|