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.
One key, one hook
A low-level keyboard hook watches for your key and passes everything else through.
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 chooseLow-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.
SetWindowsHookExWCapsLock 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 defaultWith suppression off
Speakey resets the CapsLock LED after you release the key, and ignores its own synthetic key events while it does.
keybd_event pairThe 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 msOn Linux
The key is read through evdev.
evdevEleven steps of signal conditioning
Eleven steps between the microphone and the model, in this order.
Mono mixdown
Channels are summed and divided by the channel count, so a stereo microphone does not come out louder.
any channel countDC offset removal
A slow moving average tracks the constant offset that many USB interfaces add, and subtracts it.
alpha 0.999Noise 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 framesAutomatic 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 msHigh-pass filter
Removes energy below the voice: desk rumble, keyboard vibration, fans.
80 Hz · first orderMains hum notches
Two narrow biquad notches remove power-line hum for both regions, and leave the speech band alone.
50 Hz + 60 Hz · Q 20High-shelf EQ
Restores the band where consonants live, which webcam and headset microphones roll off.
+6 dB above 2.5 kHzCompressor
Tames peaks from coughs and desk bumps without flattening speech, then restores the level.
2:1 above −20 dBFS · 5 / 50 ms · +3 dBPre-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]Resampler
Windowed sinc with a Blackman window. It runs once per transcription pass.
to 16 kHz · −58 dB sidelobesLevel 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×The model runs inside Speakey
NVIDIA Parakeet, in Speakey's own process, on your GPU or CPU.
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 GBHardware
On Windows, any DirectX 12 graphics card through DirectML, or the CPU. On Linux, the CPU.
DirectML · CPULive 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 sThe 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 oncePadding
Each pass gets silence before and after the audio, so the first and last words are not clipped.
200 ms + 200 msWord confidence
The transducer decoder returns a confidence score for every word.
per wordLanguages
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 languagesFrom key down to typed text
The rules that decide when a session ends and where its text goes.
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 typingHold 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 debounceSessions 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 sNever 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 checkIf the final pass fails
It is retried once. If that fails too, your words are kept in history.
1 retryHallucination 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.15Cleaning up the text
Four steps, in this order: fillers, your rules, numbers, learned fixes.
Filler removal
“um”, “uh” and “hmm” are removed. Optional.
step 1Your rules
Exact substitutions you wrote, applied to every transcript.
step 2 · case-insensitiveNumbers, 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 · optionalLearned fixes
Accept a suggested fix and that exact mis-hearing is corrected from then on.
step 4 · final text onlyFix 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 · SoundexCustom-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 defaultThe dictionary is files
One plain .txt per category. Edit them in any editor, or sync the folder. Speakey reloads when a file changes.
hot reloadTyping into your window
Speakey types. It picks the method from the control that has focus.
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 · pacedThe right control
Speakey resolves the focused control inside the window, not only the window on top.
GetGUIThreadInfoUnicode
Text goes out as native UTF-16.
UTF-16No clipboard on Windows
Text is typed, never pasted. Whatever you copied stays on your clipboard.
WindowsOn Linux
Keystrokes are sent through uinput.
uinputOne process; your words never leave it
Audio capture, the hook, the model and the typing live in one Rust program.
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.
RustUI toolkit
Interface: Slint on Windows (2.0). Tauri on Linux (1.6.x).
UIOffline
Dictation makes no network calls. It works the same with the network adapter disabled.
0 calls while dictatingLogs
Release builds do not write your words to the log. They write a character count.
<N chars>No recordings
Release builds contain no audio recorder. That code is compiled out.
compile time