Guides: install and run

Two ways to install (native package for Debian, Fedora, openSUSE or Arch, or a Git clone), the five dictation languages, and the voice and keyboard commands that drive a session.

Native packages for Debian 12+ and derivatives (Ubuntu 24.04+, Mint 22+…), Fedora, openSUSE Leap and Arch Linux. There are two installation paths; pick one per machine.

Install from your distribution's package

# Debian 12+, Ubuntu 24.04+, Mint 22+...
sudo apt install ./vosk-cli-dictation_0.6.1~beta_all.deb

# Fedora
sudo dnf install ./vosk-cli-dictation-0.6.1~beta-1.fc44.noarch.rpm

# openSUSE Leap
sudo zypper install ./vosk-cli-dictation-0.6.1~beta-1.leap160.noarch.rpm

# Arch Linux
sudo pacman -U ./vosk-cli-dictation-0.6.1_beta-1-any.pkg.tar.zst

The vosk-cli-dictation command is then on your PATH. On first run it builds a private virtual environment and downloads the Vosk Python bindings once; the per-user configuration file is created at ~/.config/vosk-cli-dictation/config.yaml from the shipped template. Acoustic models are not bundled — see Downloads for what the package installs and where models go.

Install from a Git checkout

For working on the code, or on a distribution without the package. Python 3.12 or later is required; python3 --version shows the installed version.

git clone https://github.com/RonanDavalan/vosk-cli-dictation.git
cd vosk-cli-dictation
python3 -m venv venv && source venv/bin/activate
pip install -r requirements.txt

Run it with python3 src/main.py. The system packages portaudio19-dev, gettext and one injection backend (below) are still required.

Dictation languages

Five languages ship: English, French, German, Spanish and Chinese (Mandarin). The active one is chosen by --lang, otherwise by the choice remembered from the icon menu, otherwise by default_model in the configuration file, whose factory value system follows the operating system language when a model for it is installed and falls back to English.

vosk-cli-dictation --lang fr

Each language needs its Vosk acoustic model unzipped under ~/.local/share/vosk-models/ (package) or vosk-model/ (checkout).

The command can download a language’s small model and check it against a known hash:

vosk-cli-dictation --download-model en

On the first run with no model at all, it offers the same download.

Each language also has a full model, 1.3 to 1.9 GB, more precise and much heavier in memory; --model-size big downloads it, or the icon menu does:

vosk-cli-dictation --download-model en --model-size big

Driving a session

Start and stop by voice with a two-word phrase, per language:

LanguageStartStop
Englishstart dictationstop dictation
Frenchactive dictéestop dictée
Germandiktat startendiktat stoppen
Spanishiniciar dictadoterminar dictado
Chinese开始 输入停止 输入

Between start and stop, speech is typed into whichever window has focus. Punctuation and newlines are spoken as well (comma, new line, …); the full per-language list is printed at startup.

Chinese is typed without spaces between characters, with full-width punctuation: 逗号 gives ,, 句号 。 and 问号 ?. A punctuation word may be heard as a word that sounds the same, more often when said alone after a pause.

The same actions exist as subcommands, meant to be bound to a desktop keyboard shortcut — the supported path under Wayland:

vosk-cli-dictation --toggle        # start or pause
vosk-cli-dictation --finalize      # stop and copy the text
vosk-cli-dictation --sleep-toggle  # release the microphone / resume
vosk-cli-dictation --dictation-on  # start the dictation
vosk-cli-dictation --dictation-off # stop the dictation, keep listening
vosk-cli-dictation --cancel        # discard the buffer of the session
vosk-cli-dictation --sleep         # enter deep sleep, release the microphone
vosk-cli-dictation --wake          # leave deep sleep

vosk-cli-dictation --diagnose reports the session type, injection backend, audio device and model status, then exits.

Trigger modes

The start/stop gesture depends on interaction.mode in the configuration file. Default toggle (above): one gesture starts, a separate gesture stops. Two other modes: maintenue — push-to-talk, dictation lasts exactly as long as the hotkeys.push_to_talk key (default ctrl_r) is held down; silence — a single gesture starts the session, which stops and copies itself once interaction.silence_timeout_ms (default 700 ms) passes with no further speech. In every mode, the spoken stop phrase and --finalize keep working as a safety net.

Wayland and X11

Text is injected through the clipboard, so it needs both a keystroke tool and a clipboard tool: wtype + wl-clipboard under Wayland, xdotool + xclip under X11, with ydotool as a driver-level keystroke fallback (wl-clipboard is still required). The native packages pull these in; a source install adds them itself. Without a clipboard tool the paste re-inserts the last thing copied by hand. ydotool, when it is the fallback, needs the ydotoold daemon and membership of the input group (log out and back in after adding it). Global Alt hotkeys reach X11 and XWayland windows only; on Wayland, bind the subcommands above to your desktop’s own shortcut settings for every window.

Optional packages: the icon and the Whisper refinement

Two packages install next to the main one, in the same version, and are removed separately. Neither is needed to dictate.

  • The notification-area icon: a microphone that shows the state of the dictation by its colour and shape, and a menu that changes the language, the Vosk model and the refinement without restarting. Package vosk-cli-dictation-tray.
  • Whisper refinement: a second neural network that rereads each finished utterance before it is typed. Package vosk-cli-dictation-whisper.

The commands for the four distribution families are on those two pages, and the file names in Downloads.

Full reference

Every configuration key, the model-path cascade and the control socket are documented in the project’s docs/: configuration.md, the vosk-cli-dictation(1) manpage and the vosk-cli-dictation-tray(1) manpage, in the five languages. See Understand for how the pieces fit together.

In this section

  • Downloads — Which file to take depending on whether you want to use vosk-cli-dictation or change it, how to check what you received, and what that apt notice means.
  • Icon — A microphone in the notification area that shows whether the dictation types, listens, sleeps or is off, and a menu that changes the language, the Vosk model and the Whisper refinement without restarting.
  • Whisper refinement — A second neural network, Whisper, that rereads each finished utterance before it is typed: what it changes, which hardware it needs, the libcublas remedy for a graphics card, and the optional package that installs it.