VoiceTyper
Press a key, speak, and the text appears in whatever app has focus, transcribed on your own machine by Parakeet or Whisper.
source (opens in new tab)The problem
Cloud dictation sends every sentence you speak to someone else's server, including the ones you delete right after. VoiceTyper keeps the whole chain on your machine: press a hotkey (Right Alt by default), speak, and the text lands in whatever program has focus. The core flow doesn't need a speech cloud at all.
Architecture
VoiceTyper is an Electron app split across processes. The main process owns the window, tray, typing, and IPC; the React 19 renderer owns microphone capture and the UI. Both speech engines run in worker threads, as do persistence and log writing, and native hotkeys run in a separate helper process, so decoding with a 650 MB model stays off the renderer and the main event loop.
Capture, the live waveform, resampling, and WAV encoding use Chromium's Web Audio API, and every recording is normalized to 16 kHz mono PCM (raw audio stored as a sequence of sample values). Before decoding, VoiceTyper walks the file's RIFF chunks, bounds-checks each one against the buffer, and rejects anything that isn't 16-bit mono at 16 kHz.
Two local speech recognition engines are available. Parakeet is the
CPU-friendly default: NVIDIA's TDT 0.6B (Token-and-Duration Transducer with 0.6 billion parameters) model in its int8 (weights stored as 8-bit integers) build, run through
sherpa-onnx. Whisper covers Tiny through Large v3 Turbo; on Windows and Linux,
its auto backend tries CUDA (NVIDIA's GPU computing platform), then Vulkan (a cross-vendor GPU compute and graphics API), then the CPU.
Parakeet doesn't return a language code. An optional second local model, a
Whisper-based language detector (Tiny by default), runs on the same audio.
Clips under 3 seconds skip detection, recordings over 45 seconds are checked
in several windows and need two matching votes, and anything without a clear
answer stays unknown instead of being guessed from the transcript.
Getting text into the focused program is its own engineering problem, so there are three insertion modes. Clipboard mode snapshots every clipboard format, pastes, and restores the snapshot. Direct mode types synthetic keystrokes. Native mode sets the focused control's value through UI Automation on Windows and System Events accessibility on macOS; Linux falls back to direct typing, and so does a Windows control that doesn't expose a value.
VoiceTyper writes settings and history to a temp file, fsyncs it, and renames it over the original, so a crash leaves either the old file or the new one. A malformed or newer-version file stops startup and names the file; VoiceTyper doesn't reset it.
Boundaries
VoiceTyper transcribes on-device and sends the text only to the focused program and its local history (the UI shows the latest 200 entries; older entries stay on disk). Model downloads are the network exception: they accept only HTTPS, the final host after redirects must belong to Hugging Face or GitHub, and each download is checked against a pinned SHA-256 before it's used. The Electron shell is locked down to match: sandboxed renderer, context isolation, no Node in the UI, audio-only microphone access scoped to the app's trusted origin, and navigation, new windows, and webviews blocked.
VoiceTyper types where you point it: it doesn't interpret voice commands or summarize what you said. Native mode appends to the end of the field, wherever the cursor sits. Cancelling stops further typing but doesn't undo phrases that live typing already inserted into another app.