Skip to content
y0sifPublic

About

Voice for the Linux desktop: dictation, read-aloud, and voice-driven LLM commands. Wayland & X11: Hyprland, Sway, Niri, GNOME, KDE. Cloud or fully offline. Written in Rust.

Topics

Resources

Contributing

Stars

158 stars

Watchers

2 watching

Forks

Repository files navigation

            _     _
 __      __| |__ (_)___  _ __ ___
 \ \ /\ / /| '_ \| / __|| '__/ __|
  \ V  V / | | | | \__ \| |  \__ \
   \_/\_/  |_| |_|_|___/|_|  |___/

  speak. type. done.

whisrs

Crates.io docs.rs Listed in Awesome Voice Typing

Voice for the Linux desktop: dictation, read-aloud, meeting transcription, voice-driven LLM commands and coding agents, with Groq, Deepgram, OpenAI or offline whisper.cpp.

Speech-to-text for Wayland, X11, Hyprland, Sway, Niri, GNOME, and KDE. Press a hotkey, speak, and your words appear at the cursor, in any app. Speech recognition runs in the cloud (Groq, Deepgram, OpenAI, OpenRouter), on your own speech server, or fully offline through whisper.cpp.

Other hotkeys read selected text aloud, rewrite it with an LLM, or hand a task to a coding agent (Claude Code, OpenCode, Codex, GitHub Copilot) that answers out loud. Meeting transcription turns your mic and the system audio into one timestamped Markdown transcript with speaker names. A voice-to-text daemon written in Rust and a small CLI, open source under MIT.

whisrs demo: dictation, read aloud, and command mode

Features

  • Dictation: text is typed while you talk on a streaming backend, or when you stop on a batch one, with your keyboard layout's own keys (AltGr and dead keys too). Batch and streaming
  • Offline, on CPU or GPU: whisper.cpp runs on your machine; a Vulkan, CUDA or HIP build moves it to the GPU. GPU acceleration
  • Read aloud: select text and hear it, through Groq, Deepgram, or a local or OpenRouter speech server. [tts]
  • Voice + LLM: rewrite the selection with a spoken instruction, give named instructions their own hotkeys, or clean up every dictation, with any OpenAI-compatible endpoint, local ones included. LLM commands
  • Voice + coding agents: give Claude Code, OpenCode, Codex or GitHub Copilot a hotkey; it works in its project, answers in a short reply spoken through [tts], and an optional overlay shows what it is doing. Agent mode
  • Meeting transcription: record your mic and the system audio, then get a timestamped Markdown transcript with speaker names, an optional summary, and a read-only MCP server so an agent can search your recordings. Recording
  • Setup and config: a setup wizard, a full-screen config editor that an AI agent can drive too (through taria-mcp, see man whisrs), and profiles that switch the backend and other settings (offline, work) with one command.
  • Extras: tray icon, on-screen overlay, word replacements, a vocabulary file, dictation history, and a failed dictation's audio kept for whisrs transcribe-recovery.

What changed in each release: GitHub Releases.

Installation

curl -sSf https://y0sif.github.io/whisrs/install.sh | bash

The script installs the latest release for x86_64 or aarch64 in /usr/local/bin, with its runtime libraries, then runs whisrs setup. Run it again to upgrade. Put WHISRS_VERSION=v0.2.2 before bash to pin a release, or WHISRS_MINIMAL=1 for the build without whisper.cpp (cloud backends only).

Arch Linux (AUR)
yay -S whisrs-bin
  • whisrs-bin: the prebuilt release, the recommended package.
  • whisrs, whisrs-cuda, whisrs-vulkan: the tagged release compiled from source, for the CPU, CUDA or Vulkan (community-maintained).
  • whisrs-git: builds main when you install it; reinstall it to update.
Cargo (build from source)
cargo install whisrs --locked

It compiles whisper.cpp, so it needs a C++ toolchain, clang and cmake first; CONTRIBUTING.md lists the packages per distro. Add --features vulkan (or cuda, hipblas) for a GPU build. Then run whisrs setup.

Nix
nix profile install github:y0sif/whisrs

Or add inputs.whisrs.url = "github:y0sif/whisrs"; to your flake. Then run whisrs setup.

Prebuilt tarball

GitHub Releases has whisrs-linux-x86_64.tar.gz and whisrs-linux-aarch64.tar.gz, plus -minimal builds without whisper.cpp. Each holds whisrs, whisrsd, the man pages, the udev rule and the service files. Copy the two binaries onto your PATH, then run whisrs setup.

First run

whisrs setup, a full-screen wizard that needs a terminal, picks a backend and tests its API key or downloads a whisper.cpp model, sets the language and microphone, and offers recording, command mode, read-aloud and a coding agent. Then it checks /dev/uinput access (for typing), the user service and a hotkey, fixing each with a keypress.

Press your hotkey, speak, and press it again: the text appears at your cursor. If something does not work, see troubleshooting.

Usage

Bind whisrs toggle to a key; whisrs setup writes the binding on Hyprland (bind = $mainMod, W, exec, whisrs toggle) and Sway (bindsym $mod+w exec whisrs toggle). Bind whisrs toggle -l de to a second key to dictate in German. On other desktops, bind it in the keyboard shortcut settings, or set [hotkeys] in config.toml, which whisrs reads from the keyboard itself on any desktop (keys are physical positions).

Command What it does
whisrs toggle [-l LANG] Start or stop dictation; -l sets the language for one session (de, en-US, auto)
whisrs cancel Stop and discard the audio
whisrs speak Read the selected text aloud (alias read; run it again to stop); --text "..." speaks the given text
whisrs command Speak an instruction, and the LLM rewrites the selected text
whisrs llm-command <name> Dictate through a named [[llm_commands]] instruction
whisrs agent <name> Record a voice turn for a coding agent; with no name, list the agents
whisrs recording toggle Start or stop recording your mic and the system audio
whisrs recording show last Print a transcript; also list, copy, name, summarize, retry, delete
whisrs profile [NAME] List config profiles, or switch to one (next, base)
whisrs config Change settings, test the mic, and browse recordings, profiles and history
whisrs log Show recent dictations
whisrs transcribe-recovery Transcribe the audio a failed dictation saved
whisrs status, whisrs restart Show the daemon's state, or restart it
whisrs mcp Serve your recordings to an AI agent over MCP (claude mcp add whisrs -- whisrs mcp)

Full reference: whisrs <command> --help and man whisrs (contrib/whisrs.1).

Transcription Backends

Pick a speech recognition backend in whisrs setup or whisrs config, or set [general] backend:

Backend Text is typed Runs on Cost
groq (default) When you stop Cloud Free tier
deepgram-streaming While you talk Cloud Paid, free credit on signup
deepgram When you stop Cloud Paid, free credit on signup
openai-realtime While you talk Cloud Paid
openai When you stop Cloud Paid
OpenRouter (asr-sidecar) When you stop Cloud, many models behind one key Paid
asr-sidecar When you stop Your server (Parakeet, Nemotron, Moonshine, VibeVoice) Free
openai-compatible-realtime While you talk Your server (Lemonade or similar) Free
local-whisper While you talk, phrase by phrase Your machine (whisper.cpp) Free

For OpenRouter, pick asr-sidecar and OpenRouter as its server in whisrs setup or whisrs config, which list each model with its price; by hand it is [asr-sidecar] url = "https://openrouter.ai/api/v1/audio/transcriptions" (OpenRouter). For offline use, pick local-whisper and setup downloads a model (base.en to start). Local server recipes are in contrib/asr-sidecars/. More: batch and streaming backends, ASR sidecar servers.

Supported Environments

whisrs runs on every Wayland compositor and on X11. Typing, hotkeys, read-aloud, recording and agent mode work on all of them; the desktop decides only window tracking and the overlays.

Desktop Window tracking Overlay
Hyprland, Niri, Sway Yes Yes
X11, any desktop Yes Yes
KDE Plasma (Wayland) No Yes
GNOME (Wayland) No Recording pill through the bundled Shell extension; no agent overlay
Other Wayland compositors No Where the compositor has layer-shell

whisrs types through the Wayland virtual keyboard where the compositor offers it and through uinput everywhere else; on X11, XTEST is an option (Typing). Window tracking returns focus to the window you started in before typing, and tells a terminal from other windows (terminal detection); without it, text goes to the window focused when it is typed. Audio comes from the default input (your PipeWire or PulseAudio default source, through ALSA) or the one [audio] device names.

How whisrs Compares

whisrs is a background daemon and a CLI you bind to any hotkey, not a GUI app. It types real keystrokes in your keyboard layout, so it works in terminals, editors and browsers alike, and you choose between cloud and offline speech recognition. docs/comparison.md compares it feature by feature with other dictation tools.

FAQ

Is there a Wispr Flow or Superwhisper alternative for Linux? whisrs is an open-source Linux dictation tool and an alternative to Wispr Flow and Superwhisper. Press a hotkey, speak, and the text is typed at your cursor in any app, on Wayland or X11, with cloud or offline speech recognition. See how it compares.

Does whisrs work offline? whisrs works fully offline with the local-whisper backend, which runs whisper.cpp on your machine: no API key, and no audio leaves it. whisrs setup downloads the model for you. Read-aloud and LLM commands can run on local servers too.

Does whisrs work on Wayland and GNOME? whisrs works on every Wayland compositor, GNOME and KDE included, and on X11. On GNOME and KDE Wayland sessions everything works except window tracking; GNOME shows the recording pill through the bundled Shell extension and has no agent overlay. See Supported Environments.

Which transcription backend should I pick? Groq, the default backend, is the easiest start: it has a free tier and needs only an API key. For text typed while you talk, pick deepgram-streaming or openai-realtime; for many hosted models behind one key, OpenRouter; for no cloud at all, local-whisper. See Transcription Backends.

Can I talk to Claude Code by voice? whisrs gives Claude Code, OpenCode, Codex or GitHub Copilot its own hotkey through an [[agents]] entry. Press it, say what you want, and the agent works in its project; when the turn ends, whisrs speaks a short reply through [tts] and shows it as a notification. See agent mode.

Can whisrs transcribe meetings? whisrs records your microphone and the system audio with whisrs recording, then writes one timestamped Markdown transcript with speaker names. It records what your computer plays, so it works with any call app, and it can add an LLM summary. See recording.

More answers: docs/faq.md.

Configuration

whisrs config is the easy way to change any setting: a full-screen editor with pickers for backends, models, languages, voices and microphones, a key test, and screens for the mic test, recordings, profiles and history. It saves ~/.config/whisrs/config.toml and restarts the daemon. You can also edit that file by hand: the guide, every key.

Troubleshooting

See docs/troubleshooting.md, including wrong characters on non-US layouts and noisy rooms or quiet mics.

Contributing

Bug reports and pull requests are welcome. CONTRIBUTING.md covers building, testing and sending a change.

License

MIT

About

Voice for the Linux desktop: dictation, read-aloud, and voice-driven LLM commands. Wayland & X11: Hyprland, Sway, Niri, GNOME, KDE. Cloud or fully offline. Written in Rust.

Topics

Resources

Contributing

Stars

158 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages