v0.4.0 Local speech-to-text

Say it.
It lands as text.

A standalone local speech-to-text (dictation) tool for Hyprland.
Hold a shortcut, speak, and preview. The text then goes into the field you already have open.

Linux · Hyprland · Wayland GPL-3.0 Keep your IME ↓ Updated ↓

0.3.0 result review · public test textClick to enlarge ↗

Hold to speak.
Then let go.

It stays out of what you are already doing. The floating bar does not take keyboard focus,
and the text is inserted once, into the original field.

One key, two gestures

Tap to start and tap again to stop, or hold while you speak and release to finish. Stop, cancel, and submitting the original transcript each have their own shortcut, so changing your mind is not a scramble.

F8 is the example record binding. Rebind it if you want.

Dictation stays local

The default is streaming X-ASR for Chinese and English, then an offline refinement pass on the same machine. A Fun-ASR CPU backend can be configured instead. Hotwords, voice-activity detection, and long-recording protection all stay on this machine.

Streaming / offline refinement / audio is not uploaded

Revise by voice, then confirm

With a draft waiting, hold F9 and say what should change. Releasing shows the revision first. You can undo a spoken edit or edit by hand. A revision always waits for confirmation. The request itself is never inserted as the draft.

Current result / spoken or manual edits / a failed edit keeps the draft
NOT AN INPUT METHOD.

Keep your IME.
Keep your pinyin.
Add one key.

hyprvoice is not an input method: no candidate window, no key remapping. Ctrl+Space, candidates, and composition still belong to your Fcitx setup. It records on one separate shortcut and pastes the text into the focused field. scripts/install.sh does not modify your Fcitx or Hyprland configuration, and it leaves your existing pinyin scheme alone.

Coexistence was tested, not assumed: in the 0.3.0 frozen checks Fcitx and hyprvoice ran at the same time, and after switching to pinyin with Ctrl+Space the keyboard input nihao produced 「你好」 while the voice entry stayed usable on the same desktop (check record ↗). The build and runtime do not depend on the Fcitx development libraries or the old voice plugins either.

Coming from a plugin like Vinput: disable the old voice entry and its background service, keep Fcitx itself, and never let two shortcut sets record at once. Run both for a few days and only switch once the new tool works in the apps you use daily. The old voice plugin and this tool are alternatives, not companions.

Start HyprVoice from your app launcher

HyprVoice stays in the system tray, ready for dictation. Opening it again uses the same instance and tray icon, while your current text field keeps focus.

F8 works while HyprVoice is running

Tap F8 to start or stop, or hold it while speaking and release to stop. Before launch and after you quit, F8 launches no app, opens no window, and records no audio.

Switch between Minimal and Detailed in the tray

The tray menu also opens settings and lets you quit HyprVoice. The tray icon requires a desktop panel with StatusNotifierItem support.

Full release notes and verification ↗

LOCAL FIRST, BOUNDARIES CLEAR.

No large model
by default.
Nothing is hidden.

The default scene is verbatim dictation, with preceding-context assistance off. Recordings are not uploaded. The transcript and the preceding context are not written to a persistent log. Local status returns only this transcript and the preceding context that was actually used, and clears that context when the tool returns to idle.

Turning on correction, cleanup, translation, or spoken revision is what sends the necessary text — this transcript, the current draft, and the revision request — to an OpenAI-compatible endpoint you configure. Turning on preceding-context assistance also sends up to 1024 characters before the cursor, configurable from 1 to 2048. The key is read only from an environment variable.

The clipboard handles UTF-8 text only, and the result stays there by default. Optional delayed restore is best-effort: the application does not report when a paste has finished. F9 revises only this result. It does not read the application's selection as the text to change. If text processing fails, the original transcript is kept. If a spoken revision fails, the previous draft is kept. When editor information is missing, only the original window is checked. Ordinary dictation does not read preceding context or send a text-processing request. An unexposed cursor, password field, or selection change inside the same window cannot be checked. Read the draft before entering a command in a terminal.

BUILD & RUN

Install 0.4.0.

The machine needs C++20, CMake, GTK4, gtk4-layer-shell, PipeWire, AT-SPI, libcurl, the sherpa-onnx C API, wl-clipboard, and hyprctl; the tray icon also needs a desktop panel that supports StatusNotifierItem.
The Arch Linux packages are gtk4 gtk4-layer-shell pipewire at-spi2-core curl sherpa-onnx wl-clipboard cmake.

Terminal
git clone --branch v0.4.0 --depth 1 https://github.com/mainliufeng/hyprvoice.git
cd hyprvoice
bash scripts/install.sh
export PATH="$HOME/.local/bin:$PATH"
hyprvoice --version

The current release is 0.4.0. Read the release notes. This is a source release: no prebuilt program and no models. The source is GPL-3.0. The commands above clone the version tag; run them from the repository root. scripts/install.sh builds, runs the CTest suite for that version, and installs the program, app launcher, and systemd user service. The program lands in ~/.local/bin, which a stock Arch PATH does not include (/etc/profile only appends /usr/local/bin), so the block exports it first; add that line to your shell config to have hyprvoice in new terminals. Set up your models and configuration, then start HyprVoice. Building and running do not depend on the Fcitx development libraries, the old voice plugin, or vinput-registry. Local model files can reuse weights you have already downloaded.

After configuring the models below, run hyprvoice doctor before starting HyprVoice for the first time. It checks the local setup without recording. Once HyprVoice is running and the shortcut is configured, make sure the right microphone is selected and unmuted, then dictate a short sentence in a plain text editor in your Hyprland session. If recording starts but no preview appears, check the microphone and model paths before changing the keybinding. To troubleshoot after HyprVoice has started, run hyprvoice diagnose. It connects to the running instance over IPC.

Configure your recognition models and start HyprVoice

For a fresh setup, select the streaming 960ms-punct-int8 and offline punct-int8 sherpa-onnx exports of X-ASR, and get silero_vad.onnx separately.

Download sizes are predictable: the streaming int8 archive is 134 MB, the offline int8 archive 136 MB, and silero_vad.onnx 0.6 MB — about 271 MB in total (sherpa-onnx release pages, checked 2026-11-26). Recognition uses the CPU build of sherpa-onnx with int8 models, and the install dependencies above include neither CUDA nor a graphics driver; speed depends on your CPU.

Both archives and the VAD file can be downloaded directly. Addresses were checked on 2026-11-27; the returned sizes match the 134 / 136 / 0.6 MB above.

M=https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models
mkdir -p ~/.local/share/hyprvoice/models
cd ~/.local/share/hyprvoice/models
curl -LO "$M/sherpa-onnx-x-asr-960ms-streaming-zipformer-transducer-zh-en-punct-int8-2026-06-05.tar.bz2"
curl -LO "$M/sherpa-onnx-x-asr-zipformer-transducer-zh-en-punct-int8-2026-06-03.tar.bz2"
tar xf sherpa-onnx-x-asr-960ms-streaming-zipformer-transducer-zh-en-punct-int8-2026-06-05.tar.bz2
tar xf sherpa-onnx-x-asr-zipformer-transducer-zh-en-punct-int8-2026-06-03.tar.bz2
curl -LO "$M/silero_vad.onnx"

Each archive extracts to a directory named after itself without .tar.bz2. The configuration command below uses exactly those two directories; change the paths if you use different models.

Both archives contain bpe.model. HyprVoice also needs bpe.vocab. If the vocabulary is missing after extraction, install the SentencePiece Python bindings (python-sentencepiece on Arch), then run this in each extracted model directory that needs it.

python3 - <<'PY'
from sentencepiece import SentencePieceProcessor

model = SentencePieceProcessor(model_file="bpe.model")
with open("bpe.vocab", "x", encoding="utf-8") as vocab:
    for index in range(model.get_piece_size()):
        vocab.write(f"{model.id_to_piece(index)}\t{model.get_score(index):.9g}\n")
PY

Return to the HyprVoice checkout. scripts/configure.py checks every file, refuses to write a partial config, and preserves any existing config.

python3 scripts/configure.py \
  --streaming ~/.local/share/hyprvoice/models/sherpa-onnx-x-asr-960ms-streaming-zipformer-transducer-zh-en-punct-int8-2026-06-05 \
  --offline ~/.local/share/hyprvoice/models/sherpa-onnx-x-asr-zipformer-transducer-zh-en-punct-int8-2026-06-03 \
  --vad ~/.local/share/hyprvoice/models/silero_vad.onnx
hyprvoice doctor

Open HyprVoice from the app launcher or run hyprvoice in your Hyprland session. A panel with StatusNotifierItem support will show the HyprVoice icon while it runs. To start it automatically at login, see the user service and session autostart options in the source instructions.

Hotwords are optional. For the first setup you can leave them out. To use an existing hotword file, add --hotwords followed by its path to the configuration command.

Bind the Hyprland shortcuts

The keys live in your Hyprland config; each binding only calls a CLI command. Merge the lines below into your config (see config/hyprvoice.conf), or use the Lua bindings in config/hyprvoice.lua. Do not load both sets. Run hyprctl reload afterwards. F8 works while HyprVoice is running.

bind = , F8, exec, hyprvoice press
bindr = , F8, exec, hyprvoice release
bind = , F9, exec, hyprvoice command
bindr = , F9, exec, hyprvoice command-release
bind = SUPER ALT, Return, exec, hyprvoice commit
bind = SUPER ALT, O, exec, hyprvoice raw
bind = SUPER ALT, Escape, exec, hyprvoice cancel
Optional text processing

In the config, set llm.base_url and llm.model. The key is read only from the environment variable named by llm.api_key_env, which defaults to HYPRVOICE_API_KEY. HTTPS verification is on by default. A trusted local HTTP service requires llm.allow_http=true, set explicitly. Scene prompts live under prompts. Restart HyprVoice after changing them.

Before upgrading, finish any result waiting for confirmation and back up the old program. Keep your configuration and models. For a manually started instance, use the old hyprvoice quit command before installing, then open HyprVoice from the app launcher. For a user service, run systemctl --user daemon-reload and systemctl --user restart hyprvoice.service after installing. If you are still using a legacy F9 binding, use hyprvoice command on press and hyprvoice command-release on release.

After a system upgrade of sherpa-onnx, follow the install steps above to check out the current release tag in a new directory. Rebuild, retest, update the install, and safely restart HyprVoice. You can reuse your configuration and models. Run hyprvoice --version to check the app version and the build-time and runtime speech-library versions.

Example shortcuts

The keys are decided by your Hyprland config, and you can bind your own. Panel hints do not assume the keys are F8 and F9.

F8
While HyprVoice is running, tap to start or stop. Hold to speak, then release to stop.
F9
Dictate a change to the draft that is waiting. Processing starts on release.
Super+Alt+Enter
Submit the processed result
Super+Alt+O
Submit the original transcript
Super+Alt+Escape
Cancel the current session
Super+Alt+1 / 2 / 3 / 4
Verbatim / correct / clean up / translate into English
15

automated test groups

A clean Arch Release build passed all 15 CTest groups. On one isolated desktop, F8 drove local recognition and inserted text into GTK once.

70

result-review flows

Recovery, candidates, drafts, and retry were checked in real GTK. Failures used explicit audio and ASR stand-ins. Spoken revision and a real private PipeWire failure were checked as well.

15 + 29

primary-desktop and multi-seat checks

Separate checks covered the real pointer, keyboard, F9 undo, and exactly-once insertion, plus the edit lifecycle and target protection on two secondary displays.

The 15 automated test groups and the link on the right are from the 0.4.0 release build (built on an Arch-based distribution on 2026-11-24; re-run here on 2026-11-25, still 15/15). The 0.4.0 archive also passed 22 checks in an isolated stock Hyprland session: launch, simultaneous launches, a single tray registration, focus preservation, the Settings window, quit, and F8 after quit. The other numbers, and the screenshots, are from the 0.3.0 feature-freeze review. Scenarios repeat across groups. These numbers are not a recognition-quality score. Playback of a public WAV through the real X-ASR model matched the same-model baseline, word for word and on score. Checks against a controlled interface do not prove the semantic quality of an external model. Real-microphone dictation and external text-model quality have not been accepted. Dropped sentences, proper-name errors, and negation errors already seen can still occur. This does not claim parity with a commercial input method. Feature review and screenshots ↗ · Release-build check ↗

Does hyprvoice upload recordings?
No. Streaming recognition and offline refinement both run on this machine. Recordings are not uploaded, and the transcript and preceding context are not written to a persistent log.
Does hyprvoice call a large model by default?
The default is verbatim dictation. It does not call any large model, and preceding-context assistance is off. Only if you enable correction, cleanup, translation, or spoken revision does it send this transcript, the current draft, and the revision request to an OpenAI-compatible endpoint you configure yourself.
Which systems does hyprvoice support?
It targets Linux, Hyprland, and Wayland for now. It supports standard Hyprland and the Lua shortcut interface, and it keeps Cornice multi-desktop input protection. See the version notes for what was actually checked and what was not.
Does hyprvoice work on sway, niri, GNOME, or KDE?
Not tested, and not a current target. The program requires HYPRLAND_INSTANCE_SIGNATURE at startup and exits with Run from a Hyprland session without it; it reads seats, the active window, and input-target-v2 through hyprctl, and draws the floating bar with GTK4 layer-shell. Those paths are implemented for Hyprland only, and the install script has no branch for other compositors. Supporting one would need code changes and a fresh verification pass. If you are on another desktop, the comparison of local speech-to-text options on Linux lists nerd-dictation, Speech Note, and Whisper-based setups with what each one needs.
What if hyprvoice stops working after a sherpa-onnx upgrade?
Follow the install steps to check out the current release tag in a new directory. Rebuild, retest, update the install, and safely restart HyprVoice. hyprvoice --version and the diagnostics show the build-time and runtime speech-library versions.
How do I install hyprvoice?
Build it from source. Follow the install steps to clone the current release tag, run bash scripts/install.sh to build, test, and install the program, app launcher, and systemd user service. Prepare the model files and write their paths with scripts/configure.py, then open HyprVoice from the app launcher. The source is GPL-3.0 and the source release contains no models.
Does hyprvoice need a GPU? How large are the models?
No discrete GPU is required: recognition runs on the CPU build of sherpa-onnx with int8 models, and the install dependencies listed above include neither CUDA nor a graphics driver. Speed depends on your CPU. You download two models yourself: streaming 960ms-punct-int8 at 134 MB and offline punct-int8 at 136 MB, plus silero_vad.onnx at 0.6 MB — about 271 MB in total (sherpa-onnx release pages, checked 2026-11-26). Source archives and releases never include models.
Is hyprvoice a speech-to-text or voice-typing tool?
Yes, on Hyprland. It turns speech into text on this machine and enters the result into whichever field has focus, for dictation across applications. With HyprVoice running, press F8 to start, speak, then preview and commit. It is not an input method: no candidate window, no key remapping, and Ctrl+Space stays with your Fcitx. Recognition is local and audio is not uploaded.
Does hyprvoice replace my Fcitx pinyin input?
No. hyprvoice is not an input method: no candidate window and no key remapping. Ctrl+Space and candidate selection stay with your Fcitx. It records on its own shortcut and pastes the text into the focused field, and the install script does not modify Fcitx or Hyprland configuration. The 0.3.0 checks ran both at once: pinyin stayed usable and typing nihao produced 「你好」.

Give the keyboard a rest.

hyprvoice on GitHub