Skip to main content

voxprep

Let your AI hear. Subtitles and timestamped transcripts from any audio or video, and answers that cite the exact second. No API key, no PyTorch, no FFmpeg install.

PyPI Python CI License: MIT

中文

pip install voxprep
voxprep subtitle talk.mp4            # writes talk.srt
voxprep transcribe talk.mp4 -f md    # writes talk.transcript.md, for your AI to read

That's it. The speech model runs on your CPU; nothing is uploaded and there is nothing to sign up for.

voxprep transcribes a 35-minute NASA podcast, then Claude answers a question about it and shows when each part was said

A 35-minute NASA podcast becomes a transcript; Claude answers from it, and every sentence of the answer comes with the moment it was said. Real output; the script is examples/ask.py.

Measured on more than 70 real recordings before release:

  • Half the errors on recordings with long pauses (9.8% → 4.3% word error rate): speech Whisper skips is sent again, and the "Thank you." it invents over silence is dropped.
  • Subtitles start 0.07 s from the truth (median), however many pieces the file was cut into.
  • A 3-hour file is ready to send in 3 minutes on about 1 GB of memory.

Give it to your AI assistant

Claude, Cursor and other assistants can't listen to a file. With voxprep they can: set it up once, then ask "what did they decide in meeting.mp4?"

Claude Code (needs uv):

/plugin marketplace add LL333111/voxprep
/plugin install voxprep@voxprep

Claude Desktop, Cursor, Windsurf and any other MCP client: add this to the MCP config.

{
  "mcpServers": {
    "voxprep": { "command": "uvx", "args": ["--from", "voxprep[mcp]", "voxprep", "mcp"] }
  }
}

Codex, Gemini CLI and anything that reads a rules file:

pip install voxprep
voxprep install-skill           # Claude Code: adds the skill to ~/.claude/skills/
voxprep install-skill --print   # everything else: paste the output into AGENTS.md

Every command takes --json. Setup details and first-run notes are in docs/agents.md.

Answers that point to the second

Hand Claude a transcript and each citation in its answer maps back to a time in the recording. On our tests it landed on the right sentence 100% of the time in English and 90% in Chinese.

import anthropic

msg = anthropic.Anthropic().messages.create(
    model="claude-opus-5-5",
    max_tokens=2000,
    messages=[{"role": "user", "content": [
        t.to_claude(title="Weekly meeting"),   # document block with citations on
        {"type": "text", "text": "What did we decide about the launch date?"},
    ]}],
)
for block in msg.content:
    if block.type == "text":
        print(block.text)
        for c in block.citations or []:
            start, end = t.locate(c)            # seconds in the recording
            print(f"  at {start:.0f}s")

For any other chat model:

t = vp.transcribe("meeting.mp4")
t.to_markdown()        # "[00:12:41] text" lines
t.estimate_tokens()    # will it fit in the context window?

What it does for you

  • Reads any file. MP4, MKV, MOV, M4A, MP3, Opus, FLAC, WAV, 5.1 audio, broken downloads: anything FFmpeg can read, with no FFmpeg to install.
  • Cuts only where nobody is talking. A file over a model's limit is split in a pause found by the Silero voice-activity model (in non-stop speech, at the quietest moment).
  • Keeps one timeline. Every piece goes back on the source timeline. Split files score within a point of files sent whole.
  • Fixes what speech models get wrong. Skipped speech is sent again on its own, invented text over silence and music is dropped, and whatever is still missing is listed in possible_gaps instead of being papered over.
  • Writes what you need. SRT, VTT, timestamped Markdown, plain text, JSON, or a Claude document with citations.
  • Stays light. numpy, PyAV and onnxruntime. About 200 MB installed, on Windows, macOS and Linux, Python 3.11+.

Choosing a speech model

voxprep subtitle talk.mp4 picks one for you:

You have voxprep uses Good to know
Nothing NVIDIA Parakeet, on your CPU 6.6% word errors on a 20-minute talk, about 5x real time on a laptop. Downloaded once (660 MB). Free and offline
GROQ_API_KEY (free) Groq Whisper The fastest: about a minute per hour of audio. 5.8% on the same talk
OPENAI_API_KEY OpenAI gpt-transcribe For the tightest subtitle timing add --model whisper-1
pip install "voxprep[groq]"     # adds the client for Groq and OpenAI
  • --via groq|openai|local picks one yourself. With a key set, the audio is sent to that service; --via local (or VOXPREP_VIA=local) keeps every recording on your computer.
  • The local model is English. For Mandarin, Cantonese, Japanese or Korean add --language zh (or yue, ja, ko) and voxprep uses SenseVoice instead (240 MB). For other languages use Groq or OpenAI; voxprep notices within the first minute and tells you.
  • voxprep says so when another model would do better. VOXPREP_QUIET=1 turns the tips off.

Bring your own model

voxprep prepares the audio, you call any model you like, and voxprep puts the answers back together:

import voxprep as vp

result = vp.prepare("call.m4a", target="openai")   # or max_mb=..., max_seconds=..., fmt=...
texts = [my_model(chunk.to_bytes()) for chunk in result.chunks]
vp.stitch(result, texts).refine().to_srt("call.srt")

stitch reads whatever comes back: OpenAI-style JSON with segments, SRT, VTT, or plain text. Plain text without timestamps is spread over the speech voxprep detected in that chunk.

Same thing from the command line:

voxprep prepare talk.mp4 --for custom --max-mb 10 --max-sec 300 --format wav -o chunks
# ...send chunks/chunk_000.wav etc. to your model, save answers as chunks/chunk_000.txt...
voxprep stitch chunks -o talk.srt

More:

voxprep inspect talk.mp4                 # duration, format, silence, which models take it as is
voxprep presets                          # every preset and its limits
voxprep ref-clip podcast.mp4 --for f5    # cleanest 3-12 s of one voice, for TTS voice cloning

Supported models

Preset Model Limit voxprep keeps to
openai OpenAI transcription (gpt-transcribe, whisper-1, gpt-4o-*-transcribe) 24 MB
groq Groq Whisper 24 MB; avoids chunks under 10 s (billed as 10 s)
gemini Gemini audio, inline 14 MB; 5-minute pieces for accurate timestamps
parakeet NVIDIA Parakeet TDT (the built-in English model) 20 s
sensevoice SenseVoice / FunASR 28 s
qwen3-asr-flash Qwen3-ASR-Flash 9.5 MB, 290 s

Anything else: --for custom with your own --max-mb, --max-sec, --rate and --format. ref-clip has presets for f5, cosyvoice, qwen3-tts and generic.

Tested on real audio

Before this release, more than 70 recordings went through the whole pipeline with Groq, OpenAI, Gemini and the built-in local models: podcasts, meetings, phone-quality calls, music and café noise under speech, clipped and very quiet audio, and files up to 3 hours, in English, Mandarin and Cantonese.

The unit tests and a correctness benchmark (every chunk under its limit, every cut in a pause, stitched times within 1 ms) run in CI on Windows, macOS and Linux, and CI downloads the local models and transcribes with them on all three:

uv run pytest
uv run python benchmarks/bench_correctness.py

Compared with

  • A script with pydub and a loop: needs system FFmpeg, and you still look up each API's limits, fix the timestamps and find the sentences the model dropped.
  • faster-whisper / WhisperX: they run Whisper on your own machine, best with a GPU. voxprep is the layer around any model: hosted APIs, your own, or its built-in CPU model, with the same fixes and the same output formats for all of them.
  • silero-vad: the same voice-activity model, but voxprep runs it on onnxruntime, so there is no PyTorch to install.

Not yet

  • Speaker labels (who said what).
  • A local model for languages other than English, Mandarin, Cantonese, Japanese and Korean.
  • Reading straight from a URL: download the file first.

Missing something? Open an issue or see CONTRIBUTING.md; a new model is usually one small preset.

License

MIT. Ships Silero VAD v6 (MIT). PyAV wheels include FFmpeg libraries (LGPL).

The built-in local models are not part of the package and are not MIT. voxprep downloads them on first use, as converted to ONNX by sherpa-onnx:

Metadata

Release files for voxprep 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for voxprep 0.1.0
File Size Uploaded Provenance Actions
voxprep-0.1.0.tar.gz 1.3 MB With provenance Details for voxprep-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for voxprep 0.1.0
File Interpreter ABI Platform Actions
voxprep-0.1.0-py3-none-any.whl Python 3 none any Details for voxprep-0.1.0-py3-none-any.whl

Total release size: 2.5 MB

Release files / voxprep-0.1.0.tar.gz

Download URL voxprep-0.1.0.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
ac3fbc33c8e4ddc1bc308dbc34a6dc4d945474c871bf1e0f19995e4626fdcf4e
BLAKE2b-256 checksum
How to use checksums
bd852e1a77b4b205608642a26eddaa420615800e4d66f2218c292faa2e17b4cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Release files / voxprep-0.1.0-py3-none-any.whl

Download URL voxprep-0.1.0-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7ccf0190257fd7d2320da65950398618b0953716c6d5b988549b0c7332b9b3ed
BLAKE2b-256 checksum
How to use checksums
b23b6b1f9dbe522a200aca6e701caecb1dff4363aa34410ee612618400dbbb9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Security for voxprep 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for voxprep-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page