Work / Local AI case study
RootVox: dictation that never leaves your Mac.
Hold a key, speak, let go, and clean text appears at your cursor in any app. Speech recognition and cleanup both run on the device: no cloud, no subscription, no telemetry.
- Status
- Working · used daily on macOS
- Type
- Independent project
- Disciplines
- Local AI · human-computer interaction · privacy
- Built
- 2026, solo · MIT licence
How to read the evidence labels
- Implemented
- In the code. Not necessarily tested.
- Author-tested
- Tested by me, with the method described. Not independent.
- Documented
- Described in project docs; not re-verified for this page.
- Design intent
- What the design aims to do. Effect not yet measured.
- Proposed
- Planned, not built.
- Gap
- Known missing or incomplete.
The problem
Dictation is faster than typing for a lot of writing, and for some people it is the only comfortable way to write at length. But most good dictation tools send your voice to a cloud service. That rules them out for private notes, client work, or anything said in a room you would not want recorded elsewhere.
Interaction design
- Push to talk. Hold the right Option key to record and release to transcribe. No wake word, so nothing listens unless you are holding the key. Implemented
- Works everywhere. Text is typed at the cursor of whatever app has focus, so it needs no integrations. Implemented
- Always know the state. A small overlay pill shows recording and processing, and never steals clicks from the app underneath. Implemented
- Clean text, not a transcript. A local language model removes filler words, fixes grammar and applies spoken self-corrections. Short phrases skip that step so they come back instantly. Implemented
- Your vocabulary. A custom dictionary teaches it names and jargon, forces exact spellings and fixes predictable mishearings. Implemented
The on-device pipeline
- A global hotkey listener detects the key press and release.
- The microphone is captured at the device's native rate and resampled to 16 kHz mono in memory.
- whisper.cpp transcribes it on the Mac's GPU through Metal, guided by the custom dictionary.
- The dictionary's exact spellings and replacements are applied.
- A local model in Ollama cleans the text up. If Ollama is not running, the raw transcript is used instead, so dictation never just fails.
- The result is typed at the cursor as keystrokes, in small Unicode-safe chunks, never through the clipboard, so whatever you had copied is left alone.
The Rust core only talks to the hotkey and text-input layers through small interfaces, so a Linux or Windows port means writing those two pieces, not the pipeline. Implemented
Data handling
| Data | Where it goes | How long it is kept |
|---|---|---|
| Your voice | Recorded and transcribed in memory on your Mac | Not saved to disk |
| Transcript | Cleaned up by a model running locally in Ollama, then typed at your cursor | Only where you typed it |
| Dictionary and settings | A config file in the app's folder on your Mac | Until you change or delete it |
| Speech and language models | Downloaded once at setup, then run locally | On your Mac |
The only network traffic is to Ollama on the same machine. There is no account, no analytics and no cloud fallback. Implemented
Permissions
Dictation that types into other apps needs real system access, so RootVox asks for exactly three macOS permissions at launch and says why: the microphone (with the message that audio never leaves the Mac), Input Monitoring for the hotkey, and Accessibility to type the text. The app is signed with a stable code-signing identity, so macOS keeps those grants across updates instead of asking again. Implemented
Testing
9 Rust tests
The custom dictionary (prompt biasing, exact casing, replacements) and Unicode-safe chunking of typed text, so emoji and accented characters are never split.
Release gates per milestone
Each milestone has written checks run by hand on macOS: permissions, hotkey, recording, transcription, cleanup and typing into real apps.
Status and next steps
Working and in daily use on macOS, with the source public under the MIT licence. Planned next: live partial transcripts while speaking, automatic end-of-speech detection, a voice command mode, and Linux and Windows ports. Proposed
Stack
- Rust
- Tauri 2
- whisper.cpp (whisper-rs, Metal)
- Ollama
- cpal + rubato (audio)
- Core Graphics events
- TypeScript
- macOS 11+