Blog

Speech to text on Linux

Samuel Bullard12 min read

On macOS and Windows, voice dictation is a system switch. On Linux, it is a four-piece pipeline assembled from separate tools: something to trigger recording from any window, PipeWire or PulseAudio to capture your microphone, a speech recognition model to turn audio into text, and a way to get that text into whichever window currently has focus.

Two of those four pieces, global shortcuts and typing into another app, are the exact things Wayland locks down on purpose. Most frustration with speech to text on Linux, and on Ubuntu in particular, comes from that architectural boundary rather than from speech recognition itself.

Why Wayland makes dictation awkward

Under X11, any program running in your session can watch global keypresses and call xdotool to type into another window. That made dictation wrappers easy to write and keyloggers equally easy to write. Wayland isolates windows from one another, so a dictation app has to work around the display server or use a compositor-specific interface twice: once to hear your hotkey, and once to deliver the transcript.

Getting text into the focused window

Every Linux dictation tool picks one of six injection paths, or chains several as fallbacks. Which one it uses decides whether it works on GNOME, whether accented characters survive, and what happens to your clipboard.

xdotool

How it works
X11 XTest extension
Where it works
X11 desktops and XWayland windows
Main catch
Cannot type into native Wayland windows.

wtype

How it works
Wayland virtual-keyboard-unstable-v1
Where it works
wlroots compositors (Sway, Hyprland, River, Niri)
Main catch
GNOME Mutter does not implement this protocol, so it fails on default Ubuntu.

ydotool

How it works
Virtual kernel keyboard via /dev/uinput and ydotoold
Where it works
Wayland (GNOME, KDE, wlroots), X11 and Linux TTYs
Main catch
ydotool type assumes a US QWERTY keymap, scrambling non-US layouts and accents; needs /dev/uinput access.

dotool

How it works
Virtual kernel keyboard via /dev/uinput with xkbcommon
Where it works
Wayland, X11 and Linux TTYs
Main catch
Needs /dev/uinput access and DOTOOL_XKB_LAYOUT set for non-US layouts.

Clipboard + Shift+Insert

How it works
wl-copy followed by a synthetic paste chord
Where it works
Most Wayland and X11 apps, including many terminals
Main catch
Clears non-text clipboard items (images, rich formatting); some terminals bind Shift+Insert to primary selection.

IBus

How it works
Input-method framework commit
Where it works
X11 and Wayland sessions running IBus
Main catch
Requires IBus rather than Fcitx5; support varies in Electron apps and games.

The second detail is keyboard layouts. Typing through ydotool type maps characters against a hardcoded US QWERTY table, so on German QWERTZ or French AZERTY it swaps letters and drops accented characters. dotool improves on this by reading DOTOOL_XKB_LAYOUT through xkbcommon, and wtype handles Unicode cleanly on wlroots compositors. Outside wlroots, many apps skip direct typing altogether and copy UTF-8 text via wl-copy then send Shift+Insert. Pasting preserves accents, punctuation and CJK text and works in most terminals where Ctrl+V does not, though it forces the app to save and restore plain clipboard text afterwards, clears non-text items like screenshots, and can still misbehave in terminals configured to paste the primary selection on Shift+Insert.

Triggering recording globally

Global hotkeys split into three patterns on Wayland.

  • Desktop or window-manager shortcut

    The simplest is binding a shortcut inside your desktop or window manager (GNOME Settings, KDE System Settings, Sway, Hyprland) to run a CLI command such as quoth --toggle, voxtype record start or nerd-dictation begin. That requires no extra permissions, though desktops that only fire custom shortcuts on key press cannot do hold-to-talk that way.

  • XDG GlobalShortcuts portal

    The standard Wayland alternative is the XDG Desktop Portal GlobalShortcuts interface, where the desktop prompts you once and manages the binding in system settings. KDE Plasma 6, xdg-desktop-portal-hyprland and GNOME 48+ support it, while older GNOME releases and xdg-desktop-portal-wlr do not.

  • Direct /dev/input

    A third option is reading /dev/input directly for hold-to-talk anywhere, which works across compositors but brings back the input group trade-off.

Speech to text on Ubuntu

Generic Wayland dictation instructions fail on Ubuntu more often than on Sway or Hyprland for one concrete reason: flagship Ubuntu runs GNOME (Mutter), and Mutter does not implement the virtual-keyboard-unstable-v1 protocol. Any tool or script relying solely on wtype exits with Compositor does not support the virtual keyboard protocol.

Switching back to X11 at the login screen is also no longer an option on current Ubuntu. Starting with Ubuntu 25.10 and continuing in Ubuntu 26.04 LTS, Canonical removed the GNOME Xorg session from the default desktop. Legacy X11 programs still run inside XWayland, and X11 flavours such as Xubuntu and Ubuntu MATE still offer Xorg, but standard Ubuntu Desktop is Wayland only.

If you are choosing a setup for Ubuntu today, the gap between the two current LTS releases matters:

Ubuntu 24.04 LTS (Noble, GNOME 46)

xdg-desktop-portal-gnome does not implement GlobalShortcuts, so custom keyboard shortcuts in GNOME Settings bound to a CLI command are more reliable than portal-based hotkeys. Ubuntu 24.04's Universe repository also ships an old pre-rewrite ydotool package (0.1.8-3build1) without the modern ydotoold systemd user service, which causes socket errors with newer instructions unless you build ydotool from source or avoid it.

Ubuntu 26.04 LTS (Resolute, GNOME 50)

Both blockers are resolved. GNOME's GlobalShortcuts portal works natively and appears in Settings, and Universe ships ydotool1.0.4-3 with ydotoold, ydotool.service and 80-uinput.rules.

In practice, Ubuntu 24.04 and Pop!_OS 24.04 users have the easiest time with tools that either ship a native .deb without requiring a separate ydotool daemon (such as Quoth's native .deb and APT package), inject through IBus (Vocalinux), or pair with dotool or clipboard paste (Voxtype). On Ubuntu 26.04, ydotool-backed setups such as Handy and Speech Note take far less manual plumbing.

Speech models: speed, memory and real quirks

The desktop app controls your shortcut and paste path, but the speech model underneath decides accuracy, RAM usage, language support and how long you wait after stopping your microphone. Four local model families do most of the real work on Linux right now.

Whisper (tiny to large-v3-turbo)

MIT
Footprint
75 MiB (tiny) up to multi-gigabyte (large); ~547 MiB for turbo q5_0
Languages
99+ languages (.en models for English)
Formatting
Punctuation and casing built in
Typical runtime
whisper.cpp (CPU, Vulkan, CUDA, OpenVINO), faster-whisper

NVIDIA Parakeet TDT 0.6B (v2, v3)

CC-BY-4.0
Footprint
600M parameters (often run as int8 ONNX)
Languages
v2: English only; v3: 25 European languages
Formatting
Punctuation and casing built in
Typical runtime
ONNX Runtime / onnx-asr, NeMo

Moonshine (tiny, base)

MIT
Footprint
27M (tiny) and 61M (base) parameters
Languages
English-focused (narrower set than Whisper)
Formatting
Punctuation and casing built in
Typical runtime
ONNX Runtime

Vosk (Kaldi small models)

Apache-2.0
Footprint
~40 MB zipped (vosk-model-small-en-us-0.15)
Languages
Separate per-language models
Formatting
Lowercase, no punctuation by default
Typical runtime
vosk-api (CPU streaming)

Whisper sizes and short-dictation quirks

In whisper.cpp, disk and runtime RAM scale steeply across sizes, from tiny (about 75 MiB on disk and 273 MB RAM), base (about 142 MiB and 388 MB RAM) and small (about 466 MiB and 852 MB RAM) up to multi-gigabyte medium and large models. Whisper Large v3 Turbo keeps Large v3's 32-layer encoder while shrinking the decoder from 32 layers to 4 (809M parameters, or ~547 MiB quantised at q5_0), making decoding much faster. One trap OpenAI documents on its release: Turbo was fine-tuned only on transcription data, not translation pairs, so if you need speech-to-English translation stick to small, medium or full large-v3.

Whisper also has two habits that matter specifically for short dictation. First, its encoder always processes a fixed 30-second window, zero-padding shorter clips, so a two-second command pays the same encoder pass as half a minute of speech. Second, because its training data included captioned online video, passing it silence or room hum can trigger phantom lines like "Thank you for watching". Well-behaved wrappers put Silero VAD (voice activity detection) ahead of Whisper and set condition_on_previous_text=False so silence is dropped before decoding and hallucinations cannot repeat.

Parakeet, Moonshine and Vosk

That fixed 30-second overhead is why newer models have gained ground quickly on Linux laptops. NVIDIA's Parakeet TDT 0.6B v3 (FastConformer encoder with a Token-and-Duration Transducer decoder, 25 European languages with automatic language detection; v2 is English only) runs fast on CPU through quantised ONNX without Whisper's silence hallucinations. Its limit is language reach: outside those 25 European languages, Whisper remains the default. Moonshine (27M tiny and 61M base) drops Whisper's 30-second padding with variable-length processing so compute scales directly with clip length, while Vosk stays relevant on very old or low-memory machines where true word-by-word streaming matters more than punctuation or accuracy.

Benchmark bearings

On the Hugging Face Open ASR Leaderboard (a multi-dataset English short-form average across LibriSpeech, GigaSpeech, AMI, TED-LIUM and others), parakeet-tdt-0.6b-v2 records 6.05% average Word Error Rate and parakeet-tdt-0.6b-v3 records 6.34% (1.93% on LibriSpeech test-clean, 3.59% on test-other). On the same leaderboard, whisper-large-v3 sits around 7.44% and whisper-large-v3-turbo around 7.83%, while smaller checkpoints such as whisper-small.en trade higher error rates for lower memory and faster CPU decoding. For contrast, Alpha Cephei lists vosk-model-small-en-us-0.15 at 9.85% on LibriSpeech test-clean and 10.38% on TED-LIUM. Treat those figures as rough bearings, not exact predictions: the leaderboard averages English corpora and measures batched GPU throughput (RTFx), not single-utterance laptop CPU latency, noisy rooms, code identifiers or non-English speech.

Local, self-hosted or cloud

  • On your computer

    Running locally on your desktop or laptop costs nothing per minute, works without a network and keeps raw audio on the machine. On a modern laptop CPU, whisper.cpp (base or small, or quantised large-v3-turbo with a Vulkan GPU or Intel NPU) or quantised Parakeet ONNX is quick enough for normal prose. On an older fanless laptop, larger models still drain battery and feel sluggish.

  • Self-hosted on your local network

    If you already have a desktop or home server with a discrete GPU, pointing a thin laptop at a self-hosted whisper.cpp server on your local network gives you big-model accuracy without local fan noise or cloud fees.

  • Cloud APIs

    Cloud APIs (OpenAI, Deepgram, Groq) make sense when you dictate heavily on weak hardware, need zero local disk and RAM overhead, or transcribe difficult accents and long recordings, provided you are comfortable paying per minute and sending audio to an external server.

Tools worth looking at

Linux dictation projects solve noticeably different problems. Grouping them by what they are built to do makes the trade-offs clearer than ranking them in one list.

Dedicated desktop dictation

Voxtype

Rust daemon, Wayland-first with X11/evdev fallback, MIT licence

Voxtype is a push-to-talk daemon built around compositor keybindings (including key-release bindings on Hyprland, Sway and River) and multiple local engines: Whisper, Parakeet, Moonshine, SenseVoice and OpenVINO Whisper. It types through wtype when supported and falls back to dotool, ydotool or the clipboard. A built-in voxtype doctor command checks audio, models and typing helpers, and packages exist for Debian/Ubuntu (.deb), Fedora (.rpm), Arch AUR (voxtype-bin) and NixOS. Good match if you want Parakeet or Moonshine, live in a tiling compositor, or prefer config files over a GUI.

Official site GitHub repository

Handy

Tauri/Rust desktop app, Linux, macOS and Windows, MIT code (brand assets reserved)

Handy offers the same offline GUI dictation workflow across Linux, macOS and Windows, running Whisper models alongside Parakeet V3 and Silero VAD. On Linux it defaults to pasting via Shift+Insert (restoring both clipboard and primary selection), using xdotool on X11 and wtype, dotool or ydotool on Wayland; its documentation explicitly notes needing ydotool on Ubuntu 26.04 because wtype does not run on GNOME. Distributed on Linux as a .deb. Makes sense if you move between operating systems, stay on X11, or want Parakeet V3 inside a desktop settings window.

Official site GitHub repository

Vocalinux

System-tray Linux app, X11 and Wayland, AGPL-3.0

Vocalinux sits in the system tray across both X11 and Wayland, defaulting to local whisper.cpp with options for VOSK, Faster Whisper, Parakeet and a self-hosted remote API endpoint. It prefers IBus for text injection when available, with ydotool and clipboard paths where IBus is absent. Packages ship via its own Flatpak remote (vocahq) and Snap rather than Flathub; the Snap requires manual audio-record and raw-input connections. Useful if you run X11, want IBus injection without clipboard churn, or want to point a tray app at your own server.

Official site GitHub repository

Quoth (this site)

GTK4 overlay, Wayland only, x86_64 only, GPL-3.0-or-later, v0.1.0

Quoth is our own single-purpose dictation app, built with GTK4, GStreamer and local whisper.cpp (CPU, Vulkan GPU or compatible Intel NPU). It pastes via wl-copy and Shift+Insert, restoring plain text on the clipboard while clearing images and rich formatting. On Ubuntu 24.04 and Pop!_OS 24.04, the native .deb and signed APT repository avoid a separate ydotool setup; the Flatpak needs a one-time uinput/ydotool setup and currently shows the floating overlay pill only on KDE Plasma. Arch users build from the release tag with makepkg.

The real limits are worth knowing up front: Quoth does not support X11, does not build for ARM yet, only runs Whisper models (no Parakeet, Moonshine or remote server option), and is not on Flathub or the AUR yet.

Install Quoth GitHub repository

All-in-one speech workstation

Speech Note (dsnote)

Linux desktop and Sailfish OS, Flathub and AUR, MPL-2.0

Speech Note covers a much wider scope than cursor dictation: offline note-taking, text-to-speech, machine translation (Bergamot) and subtitle generation across whisper.cpp, Faster Whisper, Vosk, Coqui STT and other engines. It is one of the few Linux speech apps published directly on Flathub and the AUR. Active-window voice typing works out of the box on X11; on Wayland it needs a running ydotool daemon, Flatpak socket access and the GlobalShortcuts portal. The trade-off is footprint: the base Flatpak and optional CUDA or ROCm GPU add-ons are multi-gigabyte downloads, which is heavy if you only want short dictation into a browser or editor.

GitHub repository Flathub

Scriptable and compositor-native setups

nerd-dictation

Single-file Python script, X11, Wayland and TTY, GPL-3.0

nerd-dictation wraps Vosk with no background service running when idle. You bind its begin and end commands to your own shortcuts, pipe output to xdotool, ydotool, dotool, wtype or stdout, and customise formatting in a Python config script. It even works inside a plain Linux TTY. The compromises are manual installation from git and Vosk's raw lowercase, unpunctuated output unless you write your own replacement rules.

GitHub repository

hyprwhspr

Python dictation tool, Wayland and X11, MIT licence

Built around Arch and Hyprland (with an installer script for Debian, Ubuntu, Fedora and openSUSE as well as AUR packages), hyprwhspr combines local backends (Whisper, onnx-asr, Parakeet, Qwen3-ASR) with optional cloud APIs (OpenAI, Deepgram, ElevenLabs) and optional LLM post-processing to strip filler words or apply regex replacements. It uses wl-clipboard alongside wtype or ydotool, and wires directly into compositor keybindings.

Official site GitHub repository

Full hands-free control (a different category)

If you have RSI and need to navigate windows, edit code and run a Linux desktop without touching a keyboard, plain dictation wrappers will not be enough. Talon is built for that job: a free, closed-source voice-control engine paired with open community .talon command sets. On Linux it targets X11 and does not natively support Wayland, so Wayland sessions miss global window tracking and input control, and it takes real time to learn compared to pressing one key to dictate a message.

Wayland portals, Ubuntu packages and ONNX speech runtimes all changed substantially over the past year. If a project linked on this page has changed its packaging, Wayland backend or licence, let us know through the contact page and we will update it.

Sources

Checked against official repositories, Ubuntu package archives and model cards on 27 November 2026.