Self-directed system / case study

Dictate Local

Private, offline speech-to-text for Windows on a 4 GB laptop GPU. Press F9 to speak, then press it again to type into the active window.

Watch with sound See the test results

Role
Problem owner, product decisions, failure investigation, evaluation and acceptance. Code written with AI assistance.
Team
Solo, with AI coding assistance. No employer or client.
Period
Built 31 August to 7 September 2026. In daily personal use since.
Status
Live personal system. Not a commercial product or an enterprise deployment.

Situation and constraints

I speak at about 140 words a minute and type at roughly half that. Hosted dictation already closes that gap well. The question here was narrower: what can you get if you refuse to send audio anywhere and have only a small laptop GPU?

Four constraints defined the work before any solution did:

  • A 4 GB laptop GPU already shared with a local language model, leaving under 500 MB of graphics memory.
  • No network, because much of what gets dictated is client and research material.
  • Proper nouns that matter: company names, foreign terms and abbreviations a general model has no reason to know.
  • No meter, because a quota that interrupts mid-thought costs more than a subscription.

Outside scope. This is a narrow personal constraint, not a market gap. Hosted tools optimise for accuracy, breadth and zero setup, which is what most people need. Multilingual use, other operating systems, sync and any learning from corrections were deliberately left out.

Options and evidence

Two choices shaped everything else: which model to ship, and what counts as one unit of speech. Both were settled by measurement rather than intuition, and in both cases intuition was wrong.

Model choices, measured on the same hardware
OptionWhat the measurement showedDecision
small.en, int8Five precision settings compared on the same recordings. The two higher-precision options scored worse; int8 produced byte-identical text to what was shipping and used 73 MB less.Shipped
medium.enBetter on ordinary words with a real voice, and identical raw recall of protected names. It only looked worse after cleanup, because the correction rules were mined from small.en's specific mistakes. Roughly twice the decode time and memory on this card.Held. Upgrade means re-mining the rules first
distil-medium.enWord error rate above 90% in synthetic and real-voice tests, most likely a configuration fault.Unused until understood

Words while you talk, or the whole phrase at once?

An earlier version typed text at each pause. It never retyped anything, but a pause is not the end of a thought: splitting one sentence into several recognition jobs threw away the context each needed. Replaying real recordings through both paths showed split utterances were far worse than the same audio decoded whole, while unsplit ones were unaffected.

Chosen approach

The whole phrase became the unit of work: a second F9 press ends it and it is decoded once. Live text remains available as an opt-in setting for anyone who accepts the trade. Existing users received a one-time migration that says on screen what it changed, because changing a default never reaches someone who already has a settings file.

Accuracy on proper nouns is built in three layers rather than by fine-tuning a model, each catching what the one above misses:

  1. Prompt biasingDecoding is nudged toward terms in a personal vocabulary file, capped so the prompt never crowds out the audio's own context. Alone, this recovers 7 of 14 test terms.
  2. Explicit correction rulesDeterministic "heard, wanted" pairs for what biasing cannot reach, such as "guitar pre-po" to "GitHub repo".
  3. Near-miss snappingEdit-distance matching at a strict threshold with a minimum word length, tuned so it never rewrites an ordinary English word. All three layers together recover 14 of 14.

Why not something cleverer: a tool that quietly rewrites its vocabulary from guessed corrections is a tool you cannot predict. The vocabulary stays a text file the user controls.

Delivery and AI use

Turning audio into words is one library call. Roughly nine tenths of the work was the last mile: typing into the right window when focus has drifted, never stealing the keyboard, never typing when nobody spoke, and surviving a laptop going to sleep.

  1. CaptureFirst F9 starts recording; second F9 ends the phrase.
  2. Speech gateVoice activity detection decides whether anyone spoke. Silence is discarded, because half a second of near-silence once produced a confident "Thank you for watching."
  3. RecognitionWhisper small.en on the GPU at int8, biased by the vocabulary file. Falls back to CPU instead of crashing.
  4. Correction and cleanupRules, near-miss snapping, filler removal and spoken commands such as "full stop" or "scratch that".
  5. TypingText goes into the focused window. The clipboard is untouched, and the status indicator never takes focus.

AI-assisted build, disclosed. The code was written with extensive AI assistance. My contribution was the problem framing, product decisions, failure investigation, evaluation and acceptance. The public build log records 12.2 hours of actual work across 22 sittings on 5 days, 3,369 turns and 4.0 million output tokens. Most of the instructions were bug reports from daily use, not feature requests.

Results and limits

Figures as published in the repository in October 2026. Each is produced by the offline test suite, which regenerates its speech corpus locally and can be rerun by anyone with the hardware.

Vocabulary recall

14 of 14 test terms recovered with all three layers

Source: Dictate Local offline test suite, October 2026.

Measured on an RTX 3050 Laptop GPU with 4 GB of memory
MeasureResultMethod and limits
Vocabulary recall50% to 100%7 of 14 test terms with prompt biasing alone, 14 of 14 with all three layers. A small, personal term set.
Ordinary speech0.0% changeWord error rate on an 89-word control corpus, so the accuracy gain did not cost ordinary sentences.
GPU speed8 to 16x realtimesmall.en at int8, measured on battery and mains power.
MemoryUnder 500 MBFits the budget left beside a local language model on the same card.
Regression tests20 suitesEach written after a real failure, and each checked by reverting its fix to confirm it fails.

What it does not do

  • English only, Windows only, and full speed needs an NVIDIA GPU.
  • One user, one machine. No accounts, sync or telemetry, by design.
  • No external users are claimed. The evidence is daily personal use and a reproducible test suite, not adoption.

Failure and lesson

After the laptop lid closed, the hotkey silently stopped working. The process stayed alive and the log showed nothing.

The first three fixes each found a genuine bug in the recovery routine and fixed it correctly. The failure continued, because nothing was calling the recovery routine at all. Sleep was being detected by a jump in the wall clock, and Windows Modern Standby never produces one: threads keep running at low power while the keyboard hook is torn down anyway.

Windows exposes the missing quantity. One system counter includes standby time and another excludes it; the difference is exactly the time the wall clock cannot see. The detector fired on the next real sleep, matching the system power log to the minute. Rebuilding a GPU model inside a process whose graphics context had been destroyed proved unsurvivable, so recovery now hands over to a fresh process about a second after wake.

The lesson that generalises: before debugging what a recovery path does, check that something calls it. A second one sits beside it: a quality gate once scored 100% on a wrong sentence because it measured what was easy rather than what mattered. It now counts numbers that appear without having been said.

Proof

The demo shows Dictate Local typing into the active window with Wi-Fi off. A custom vocabulary helps it spell technical terms such as Terraform. The repository contains the implementation and test evidence.