Field Notes

I built my own Wispr Flow: local dictation in English and French on an open model

I built my own Wispr Flow: local dictation in English and French on an open model

I've been a happy Wispr Flow user for a while. You hold a shortcut, you talk, and your words get typed wherever your cursor is. Once you get used to it, typing long messages feels slow.

But I kept wanting a version that is mine: an open model, running on my own machine, comfortable with English and French (I switch all day), able to take meeting notes, and wearing my own colours. So I built one. It's called ZBWhisper, it took about a day of pairing with Claude Code, and by the end I was dictating my feedback to Claude with the app itself. 😄

This is the full tour, buddy style: what it does, how it's put together, where it gets things wrong, and the plan to make it learn my voice from my own recordings.

What it does

Hold Ctrl + Win in any app, talk, let go. The text is pasted at your cursor. While it listens, a small pill floats on screen with a level meter and a timer:

The ZBWhisper dictation pill: ZB logo, a five-line Z-shaped level meter and a 0:00 timer
The pill that shows while you hold the shortcut. It never takes focus, so the app you are typing into stays active.

The main window is where you see the history, pick the language, and get a few stats:

ZBWhisper Dictation page with the headline Speak anywhere, it lands at your cursor, a language switch, stats and the dictation history
The Dictation page. The stat I like most is bottom right: 26 times faster than real time, on a CPU.

What's in the box:

  • Dictation in English and French, with the language detected automatically.
  • Meetings: records my microphone plus whatever the speakers play, writes the transcript while people talk, and can turn it into notes with a local language model.
  • A dictionary for the names and jargon the model keeps mishearing.
  • A models page to download and switch between open speech models.
  • No cloud. Audio, model and text stay on the PC.
ZBWhisper Meetings page, empty, with a New meeting button
Meetings, still empty. More on that in the honest section at the end.

How it's put together

Pipeline in four steps: keyboard hook on Ctrl plus Win, microphone capture resampled to 16 kHz, Parakeet speech model on the CPU, then dictionary rules and paste
One dictation, start to finish. There is no server anywhere in that path.

The app is built with Tauri 2: a Rust core that does the real work, and a React UI for the window. I picked Tauri for a simple reason: it uses the WebView2 browser engine that already ships with Windows 11, so it doesn't have to carry its own. The installer is 8 MB.

The speech model is not in the installer. You download it once from Hugging Face on the Models page (about 670 MB) and it lives in the app's data folder from then on.

On the Rust side:

  • Audio capture with cpal, plus a small windowed-sinc resampler in the project to bring whatever the microphone delivers down to the 16 kHz the model expects.
  • Speech recognition with transcribe-rs on top of ONNX Runtime.
  • Typing the result: put the text on the clipboard, send a synthetic Ctrl+V, then give you back what you had on the clipboard before.

The look comes from my own "Systems in Motion" brand kit, the same one this site uses. Even the level meter is the five-line Z from the logo.

Picking the model

Two open models are wired in:

ModelSizeLanguagesLicence
Parakeet TDT 0.6B v3 (NVIDIA)600M parameters25 European languages, detects the language itselfCC-BY-4.0
Cohere Transcribe2B parameters14 languages, you have to say which oneApache-2.0

Parakeet is my default, for two reasons. First, it works out the language on its own, which matters when you answer one message in French and the next in English. Second, it's fast: a 5.4 second dictation was transcribed in 217 ms on my CPU, roughly 25 times faster than real time. The model loads in about 1.3 seconds when the app starts.

Cohere Transcribe is there as the heavier option. I haven't put it through its paces inside the app yet, so I won't pretend to compare them.

ZBWhisper Models page showing Parakeet TDT 0.6B v3 in use and Cohere Transcribe available to download
The Models page. Each model is one download, then it runs offline.

Why the CPU and not the GPU? My machine is an AMD Strix Halo, and I've already written about GPU compute freezing the whole PC on it. At 25 times real time on the CPU there was nothing to win by taking that risk, so the GPU is left out on purpose.

The shortcut was the hard part

I wanted the same shortcut as Wispr Flow: Ctrl + Win. Two modifier keys, no letter. That turned out to be the most interesting problem of the whole build.

Windows has a standard API for global shortcuts, RegisterHotKey, and it wants a real key next to the modifiers. A chord made only of modifiers is not something it can do. The first version of the app used it anyway with Ctrl+Alt+Space. Another app on my machine already owned that one, the registration failed, and nothing told me. The shortcut was just dead.

So ZBWhisper installs a low-level keyboard hook (WH_KEYBOARD_LL) and tracks the chord itself. Three details make it pleasant instead of annoying:

  • Ctrl+Win is also the start of real Windows shortcuts, like Ctrl+Win+arrow to switch virtual desktops. If another key joins within 800 ms, the app decides you meant that shortcut and throws the recording away.
  • Letting go of Win normally opens the Start menu. The app slips in a harmless "mask" key so Windows never sees a lonely Win tap.
  • The app's own paste is fake keyboard input. The hook ignores injected events, otherwise ZBWhisper would react to its own Ctrl+V.

The chord logic is a plain state machine with no Windows calls inside, which means it can be unit-tested like any other function. The project has 32 tests at the moment, and a good share of them are about this.

"Zakaria" came out as "the carrier"

Here's the catch with a general-purpose model: it has never heard of me. In my first real test, Parakeet wrote my first name as "the carrier". The app's own name comes out as "Z B Whisper". Names, products and jargon are exactly where these models stumble.

The first answer is a dictionary: rules of the form "when it writes X, write Y", applied to every dictation and every meeting transcript. A rule matches whole words, ignores case, and keeps the capital letter at the start of a sentence.

ZBWhisper Dictionary page with a rule form filled in with the carrier and Zakaria, and the Training set section with the Keep my recordings switch off
The Dictionary page, with the rule that started it all. The Training set block at the bottom is where the next section begins.

The part I'm happy with is how rules get created. I don't have to come to this page. In the history, I click Edit on a dictation, fix the text, and save. The app compares the two versions and asks: "the carrier → Zakaria, always do this?" One click and it's a rule.

The comparison is a word-level diff. This is the function's own description in the code:

/// Longest phrase, in words, that a learned rule may cover on either side. Anything
/// longer is the user rewriting a sentence, not fixing a misheard word.
const MAX_PHRASE_WORDS: usize = 4;

/// Work out which replacements turn `before` into `after`.
///
/// Both texts are split into words and aligned on their longest common subsequence
/// (compared without case or punctuation). Each stretch that differs on both sides is a
/// replacement: "…it's [the carrier] and…" against "…it's [Zakaria] and…". Words that
/// only gained a capital in mid-sentence count too ("kafka" → "Kafka").
pub fn learn(before: &str, after: &str) -> Vec<Suggestion> { /* … */ }

Rules are offered, never applied silently. A diff can't tell a misheard name from me simply rewording a sentence, so the app proposes and I decide.

The plan: make it learn my voice

The obvious next question: can the app get better by itself, from my own dictations? Yes, but the order matters a lot.

The accuracy plan in four steps. Built: keep recordings with their text, learn word rules from fixes. Not built yet: bias the decoder, fine-tune Parakeet
Steps 1 and 2 exist today. Steps 3 and 4 are the plan, not a result.

Why not just train it on its own output?

Because you'd be teaching the model its own mistakes. It heard "the carrier", you train it on "the carrier", and now it is more confident about being wrong.

I have a real example from my first hour. One clip of 3.7 seconds came back as the word "Test" 22 times in a row, followed by five more words. That is 27 words in 3.7 seconds, more than seven a second, so at least part of it is the model repeating itself. If that transcript went into a training set as the truth, I'd be paying to make the model worse.

So the rule for the whole plan is: only the clips I corrected by hand count as labels.

Step 1: keep the recordings (built, opt-in)

There's a switch called "Keep my recordings". It is off by default: nothing I say is written to disk unless I turn it on. With it on, each dictation is saved as a 16 kHz mono WAV, plus a small JSON file next to it. Here is a real one from my machine (trimmed):

{
  "id": "38610a62-…",
  "audioMs": 5370,
  "modelId": "parakeet-v3",
  "rawText": "Well man, this sentence has been written to uh Z B Whisper.",
  "text": "Well man, this sentence has been written to uh Z B Whisper.",
  "corrected": false,
  "cleaned": false
}

What the fields are for:

  • rawText is exactly what the model produced. It never changes.
  • text is what it should have produced. Right now it's identical, because I haven't fixed this one. The day I change "Z B Whisper" to "ZBWhisper" in the history, text gets the fix and corrected flips to true.
  • cleaned marks clips where a language model reworded the text. Those no longer match the audio word for word, so they stay out of training.

Storage is not a worry: 16 kHz, 16-bit mono is about 1.9 MB per minute, so ten hours of speech is a bit over 1 GB. And deleting a dictation from the history deletes its recording too.

Step 2: learn rules from my fixes (built)

That's the dictionary flow from the previous section. The nice thing is that one fix does two jobs: it can become a rule that helps today, and it turns that recording into a trustworthy training example for later.

Step 3: bias the decoder (next, not built)

The dictionary repairs text after the model has finished. That works when the mistake is stable, like "the carrier". It fails when the mistake changes every time. A place name near me once came out cut off in the middle of a word. Next time it will be mangled differently, and a rule written for the first version won't match.

The better fix is to nudge the model toward my dictionary words while it is decoding, so it leans to "Zakaria" when the sound is close. That means replacing the library's decoding loop for Parakeet with one I control. It's the next thing I want to build, and I haven't started.

Step 4: fine-tune Parakeet (later)

Parakeet's model card says it can be used as a pre-trained checkpoint for fine-tuning with NVIDIA NeMo. NeMo reads a manifest with one JSON line per clip, and the app already has an "Export manifest" button that writes it:

{"audio_filepath":"C:\\Users\\…\\dataset\\38610a62-….wav","cleaned":false,"corrected":false,"duration":5.37,"text":"Well man, this sentence has been written to uh Z B Whisper."}

The rest is a plan, and I want to be clear that none of it has happened yet:

  1. Collect first. I need a few hours of clips where corrected is true. Today I have a handful of recordings, so this is months of normal use away.
  2. Train only on the good ones: corrected: true and cleaned: false.
  3. Keep some corrected clips aside as a test set and compare the error rate before and after. If the fine-tuned model isn't measurably better on clips it has never seen, it doesn't ship.
  4. Train somewhere else. Not on my own GPU, for the freezing reason above, and NeMo is NVIDIA's toolkit anyway. The plan is to rent an NVIDIA GPU for a few hours. I haven't tried it.
  5. Bring it home. Export the result to ONNX, quantise it like the current one, and drop it in the models folder as one more entry on the Models page.

The honest section

Dictation is the part I use and have tested with my own voice. The rest deserves a clear status:

  • Meetings is built, but I haven't run it through a real call yet. The notes also need a local language model served over an OpenAI-compatible API (Ollama, for example), and I haven't set one up for it.
  • Cohere Transcribe is selectable, but untested in the app.
  • Fillers are typed as spoken. You can see an "uh" in the JSON above. There's an optional clean-up pass through the local language model for that, also untested.
  • "Start with Windows" exists as a switch. I still have to confirm it on a real sign-in.
  • The installer isn't code-signed, and the code isn't published yet.

Was it worth a day?

Yes. I now dictate with an 8 MB app and an open model that runs 25 times faster than real time on a CPU, in both my languages, and nothing I say leaves the machine.

And the part I find most fun is the loop: every word I fix becomes either a rule that helps today or a training example for later. If you're tempted to build your own, start with the shortcut. That's where the surprises are.

Keep reading

Cloning my own voice on a CPU in 20 minutes with Pocket TTS

Kyutai's Pocket TTS is a 100M-param, CPU-only text-to-speech model that does zero-shot voice cloning. Getting it to clone my voice took one afternoon — two gotchas worth writing down (uvx isolation and the mp4 trap), plus a Claude Code skill so I can trigger it mid-session.

7 Jul 2026 · 6 min read ·235 views ·Written with Claude