Local whisper.cpp as a keyless fallback — plus a punctuation gotcha worth documenting either way

Author: gqbeermanCreated Aug 12, 2026Updated Sep 21, 2026

Two things, separable — the second is useful to you even if you have no interest in the first.

1. A keyless local backend

I added a local whisper.cpp backend to my vendored copy, preferred ahead of the API call. Motivation was mundane: I'm behind a VPN a lot, and Groq answers a VPN exit with

403  {"error":{"message":"Access denied. Please check your network settings."}}

An unauthenticated request gets the identical body, so it's a network-layer block, not auth — but the message reads like a bad key, and I burned time suspecting the key before checking my egress IP. A local path sidesteps it entirely, and costs nothing.

Measured on an M3, 34.8s of narrated speech, large-v3 q5_0:

Backend Wall clock Cost
local whisper.cpp ~10.5s $0.00
Groq whisper-large-v3 ~1.4s ~$0.001

~7x slower, free, offline, no key. Quality came out at least equal — on one clip the local run recovered two segments the Groq run dropped, while truncating a tail Groq kept.

Happy to open a PR with tests if you want this. I've deliberately not sent one yet: my model discovery hardcodes ~/.cache/whisper-cpp with a "largest file wins" heuristic, and I haven't tested binary discovery on Linux or Windows. That needs your opinion on shape before it's worth reviewing.

2. The gotcha — this is the part worth having regardless

whisper-cli in timestamped mode returns materially worse text than the same binary with -nt. Same model, same audio, same build.

Default (timestamps on, what you'd want for a transcript):

[00:00:00.000 --> 00:00:05.760]   every parent remembers the sentence he's a little behind you hear a verdict on
[00:00:05.760 --> 00:00:12.480]   your child it's not it's a timestamp behind only ever means one thing where

Lowercase, no punctuation, segments cut at arbitrary ~5s boundaries mid-sentence, and digits spelled out as words (nine two five three eight four oh two four five).

With -nt, punctuation comes back — but the timestamps are gone, so it's useless for a timestamped transcript.

Fix: prime it with an initial prompt. Timestamps stay on:

--prompt "The following transcript uses standard punctuation and capitalization."
[00:00:00.000 --> 00:00:03.300]   Every parent remembers the sentence, he's a little behind.
[00:00:04.440 --> 00:00:08.380]   You hear a verdict on your child, it's not, it's a timestamp.
[00:00:27.280 --> 00:00:32.240]   Call 925-384-0245. Confidence starts here.

That single flag fixes capitalisation, punctuation, numeric formatting, and segment boundaries — they land on sentence ends instead of blind 5s cuts. Quotation marks come back too (Kids don't say, "I'm behind.").

Two caveats I verified rather than assumed:

  • Keep the prompt content-free. My first version used the clip's own opening line, which "worked" by feeding the decoder its answer. Retested with a generic prompt on two unrelated clips before believing it.
  • It survives past the 30s window without --carry-initial-prompt — output was byte-identical with and without.

Also worth noting for anyone else who wanders in: whisper.cpp only accepts 16 kHz signed-16 mono WAV, so the existing mp3 extraction path can't be reused as-is.

Happy to send the finding as a docs note if you'd rather have that than the backend.

Source: bradautomates/claude-video