// for the curious47 details · about 900 words

Nerd sh!t

Everything between your microphone and the text at your cursor: the signal chain, the numbers, and the reason for each.

// purpose-built at every stage. no cloud. no python. no hand-waving.

// 01 the key6 details

One key, one hook

A low-level keyboard hook watches for your key and passes everything else through.

01.01

Why CapsLock

It sits under your left little finger, it is as wide as Shift, and nobody presses it on purpose. Its main job until now was yelling in group chats. You can pick another key.

or any key you choose
01.02

Low-level keyboard hook

A Win32 WH_KEYBOARD_LL hook, called through raw FFI. Speakey consumes only Caps Lock; tools that grab all input crashed games running kernel anti-cheat, so Speakey does not grab.

SetWindowsHookExW
01.03

CapsLock suppression

The hook consumes CapsLock events, so Windows never sees them: no capitals, no LED. If CapsLock was on when Speakey starts, Speakey turns it off.

on by default
01.04

With suppression off

Speakey resets the CapsLock LED after you release the key, and ignores its own synthetic key events while it does.

keybd_event pair
01.05

The hook never waits

Windows removes a hook whose callback is slow. The callback takes no locks: it reads atomics and queues the press for a worker thread. A press that lands while the last sentence is still being typed is queued, not dropped.

limit: 300 ms
01.06

On Linux

The key is read through evdev.

evdev
// 02 audio pipeline11 details

Eleven steps of signal conditioning

Eleven steps between the microphone and the model, in this order.

02.01

Mono mixdown

Channels are summed and divided by the channel count, so a stereo microphone does not come out louder.

any channel count
02.02

DC offset removal

A slow moving average tracks the constant offset that many USB interfaces add, and subtracts it.

alpha 0.999
02.03

Noise suppression

RNNoise, a small recurrent neural network, through the nnnoiseless Rust port. It runs on the CPU. You can turn it off.

48 kHz · 10 ms frames
02.04

Automatic gain

Follows the speech envelope and brings quiet and loud speech to one level. It runs after noise suppression. Calibrating a microphone sets that microphone's gain limit.

target −20 dBFS · up to 10× · 15 / 150 ms
02.05

High-pass filter

Removes energy below the voice: desk rumble, keyboard vibration, fans.

80 Hz · first order
02.06

Mains hum notches

Two narrow biquad notches remove power-line hum for both regions, and leave the speech band alone.

50 Hz + 60 Hz · Q 20
02.07

High-shelf EQ

Restores the band where consonants live, which webcam and headset microphones roll off.

+6 dB above 2.5 kHz
02.08

Compressor

Tames peaks from coughs and desk bumps without flattening speech, then restores the level.

2:1 above −20 dBFS · 5 / 50 ms · +3 dB
02.09

Pre-emphasis

Tilts the spectrum toward consonants. Lighter than the textbook 0.97, because Parakeet was trained on natural speech.

y[n] = x[n] − 0.65·x[n−1]
02.10

Resampler

Windowed sinc with a Blackman window. It runs once per transcription pass.

to 16 kHz · −58 dB sidelobes
02.11

Level normalisation

Every pass is normalised to one RMS level, so distance from the microphone matters less. Gain is capped so room noise is not amplified.

cap 10×
// 03 transcription engine7 details

The model runs inside Speakey

NVIDIA Parakeet, in Speakey's own process, on your GPU or CPU.

03.01

The model

NVIDIA Parakeet TDT 0.6B v3 through ONNX Runtime. Written in Rust. No Python and no second process. Downloaded once.

about 2.5 GB
03.02

Hardware

On Windows, any DirectX 12 graphics card through DirectML, or the CPU. On Linux, the CPU.

DirectML · CPU
03.03

Live words

While you talk, the model re-reads the recent audio on a timer and the overlay shows the result.

every 250 ms GPU · 400 ms CPU · last 30 s
03.04

The final pass

When you stop, the whole session is transcribed and typed once. Anything over 30 seconds is transcribed in pieces, cut at pauses.

typed once
03.05

Padding

Each pass gets silence before and after the audio, so the first and last words are not clipped.

200 ms + 200 ms
03.06

Word confidence

The transducer decoder returns a confidence score for every word.

per word
03.07

Languages

Bulgarian, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hungarian, Italian, Latvian, Lithuanian, Maltese, Polish, Portuguese, Romanian, Russian, Slovak, Slovenian, Spanish, Swedish, Ukrainian. One model covers all of them.

25 languages
// 04 dictation rules6 details

From key down to typed text

The rules that decide when a session ends and where its text goes.

04.01

One output path

Live words are a preview. Text is typed once, from the final pass. A late preview can never be typed as well.

no double typing
04.02

Hold or tap

Tap mode is hold mode with the key latched: tap to start, tap to stop. Nothing is typed while you are still speaking.

500 ms debounce
04.03

Sessions end themselves

A forgotten session ends after a minute with no new words. Any session ends at one minute long, at the next pause: on longer passes we measured the model dropping whole sentences.

60 s
04.04

Never the wrong window

When Speakey ends a session by itself, the text is typed only if you are still in the window you started in. Otherwise it goes to your history. On Linux Speakey cannot tell which window that was, so a session that ends on its own goes to your history, except at the one-minute limit, where it is typed.

window check
04.05

If the final pass fails

It is retried once. If that fails too, your words are kept in history.

1 retry
04.06

Hallucination filter

Speech models can invent text from silence. Short transcripts are checked for repeated three-word runs, low variety and known phantom phrases, and rejected.

> 40 % repeated trigrams · bigram ratio < 0.15
// 05 dictionary & post-processing7 details

Cleaning up the text

Four steps, in this order: fillers, your rules, numbers, learned fixes.

05.01

Filler removal

“um”, “uh” and “hmm” are removed. Optional.

step 1
05.02

Your rules

Exact substitutions you wrote, applied to every transcript.

step 2 · case-insensitive
05.03

Numbers, emails, URLs

Spoken forms become written forms. “twenty three dollars and fifty cents” is typed as $23.50. “https colon slash slash speakey dot io slash buy” is typed as https://speakey.io/buy. Separate numbers are never added together. Pure pattern matching, no second model.

step 3 · optional
05.04

Learned fixes

Accept a suggested fix and that exact mis-hearing is corrected from then on.

step 4 · final text only
05.05

Fix suggestions

Click a word in your history or your last dictation to fix it. Candidates come from your dictionary, matched by spelling and by sound. “clod” finds “Claude”.

Levenshtein · Double Metaphone · Soundex
05.06

Custom-word boosting

Words in your Learned list (words you teach Speakey or fix) are favoured when the final text is written. Other lists and vocabulary packs are not.

up to 1,000 words · on by default
05.07

The dictionary is files

One plain .txt per category. Edit them in any editor, or sync the folder. Speakey reloads when a file changes.

hot reload
// 06 text injection5 details

Typing into your window

Speakey types. It picks the method from the control that has focus.

06.01

Three ways to type

Classic text boxes get characters posted straight to them. Everything else gets keystrokes. Remote Desktop gets paced keystrokes.

WM_CHAR · SendInput · paced
06.02

The right control

Speakey resolves the focused control inside the window, not only the window on top.

GetGUIThreadInfo
06.03

Unicode

Text goes out as native UTF-16.

UTF-16
06.04

No clipboard on Windows

Text is typed, never pasted. Whatever you copied stays on your clipboard.

Windows
06.05

On Linux

Keystrokes are sent through uinput.

uinput
// 07 architecture5 details

One process; your words never leave it

Audio capture, the hook, the model and the typing live in one Rust program.

07.01

One process

The model has its own worker thread and receives audio over a channel. Its GPU memory is owned and freed by the same process.

Rust
07.02

UI toolkit

Interface: Slint on Windows (2.0). Tauri on Linux (1.6.x).

UI
07.03

Offline

Dictation makes no network calls. It works the same with the network adapter disabled.

0 calls while dictating
07.04

Logs

Release builds do not write your words to the log. They write a character count.

<N chars>
07.05

No recordings

Release builds contain no audio recorder. That code is compiled out.

compile time
// release notesRelease notes moved to their own page/changelog →

All of this runs on your machine

On your hardware, with your data staying yours.

Download free trial