I dictate a lot of notes. For years I used cloud-based voice APIs. They work well until you're offline, on a slow connection, or simply uncomfortable sending audio to a third-party server. I wanted something local, instant, and distraction-free.
The workflow
Dictait maps a global Super+I shortcut to a simple pipeline:
- Start recording via PyAudio
- Capture audio until the key is released
- Transcribe with faster-whisper
- Write the result to the clipboard
The entire round-trip takes under two seconds on a mid-range laptop. No window to open, no button to click.
The global hotkey problem
The trickiest part was registering a truly global hotkey on Linux without requiring root access. X11 apps can grab keys globally, but Wayland is more restrictive by design.
I ended up using the keyboard library for hotkey capture, running the listener in a background thread so it doesn't block the transcription pipeline. On Wayland you need to run it with sudo. Not ideal, but acceptable for a personal tool.
Why faster-whisper
Faster-whisper, a CTranslate2-based reimplementation of OpenAI's Whisper, is what made it fast enough. The base.en model runs in roughly 200ms on CPU for a 5-second clip, which is fast enough to feel immediate. The full Whisper model was too slow for interactive use; faster-whisper hit the sweet spot between accuracy and latency.
Keep it minimal
The tool is deliberately minimal. No GUI, no settings file, no daemon manager. Just a Python script you add to your startup applications. I've been running it daily for months and have never needed to touch it.
Sometimes the best software is the kind you set up once and forget about.