Skip to content

Usage

uv run easyspeak

uv manages the environment for you. If you installed into a plain virtual environment instead, activate it each time you open a new terminal and run the script directly:

source ~/easyspeak-venv/bin/activate
easyspeak

Say "Hey Jarvis" followed by a command. Afterwards EasySpeak keeps listening, whether it replied, acted silently or did not understand, so you can go on or try again at your own pace — "open documents", then "louder", "louder" — without repeating the wake word. It goes back to waiting for the wake word after about ten seconds of silence, or when a mode ended because you went quiet, which its spoken notice tells you.

EasySpeak runs once per desktop session. Starting it again, e.g. from the application menu when it started at login, greets you from the running copy and wakes it up if it was asleep.

Command-line options

Flag Default Effect
-q, --quiet Show only warnings and errors in the terminal
-v, --verbose Announce warnings and errors on the desktop and by voice
-d, --debug Show all logging output in the terminal
--configure [ITEM ...] extension service Set up the listed integrations and exit
--preview ITEM Print the file content that would be configured and exit
--language CODE Language to dictate and be answered in; or EASYSPEAK_LANGUAGE

With -v, each warning and error gets a desktop notification, titled with the feature it comes from, and EasySpeak says which feature it is, e.g. "Hold-to-dictate: there was a warning.", followed once by where the details are. A notification with the version, desktop and language comes at startup. -v goes with either -d or -q, which only change what the terminal shows.

--language is the command-line form of EASYSPEAK_LANGUAGE (see below) and overrides it. For --configure/--preview, each ITEM is one of extension, service, autostart, or desktop. The terminal's verbosity can also be set with the EASYSPEAK_LOG_LEVEL environment variable (e.g. DEBUG, INFO, WARNING), but -d and -q take precedence.

See core.cli and core.log for the underlying argument parsing and logging setup.

Configuration

Behavior is tuned through EASYSPEAK_* environment variables, grouped below by the module that reads each (linked to its API reference).

core.config

Variable Default Effect
EASYSPEAK_HOTKEY ctrl+shift Keys held to dictate without the wake word
EASYSPEAK_LANGUAGE en Language you dictate in and are answered in
EASYSPEAK_MODELS_DIR models/ beside the venv Where language packs are installed
EASYSPEAK_NOISE_FILTER on 0 listens to the microphone unfiltered
EASYSPEAK_OFFLINE strict Stay offline; relaxed downloads models
EASYSPEAK_STT parakeet, whisper if not installed Speech model: parakeet or whisper
EASYSPEAK_TTS piper Reply voice engine: piper
EASYSPEAK_TTS_VOICE an installed language pack's voice Reply voice; for Piper a voice .onnx
EASYSPEAK_PIPER_BIN piper Piper TTS binary
EASYSPEAK_REQUIRE_WAKE_WORD unset Modes wait for the wake word each command
EASYSPEAK_PIPER_MODEL Deprecated name of EASYSPEAK_TTS_VOICE
EASYSPEAK_SOUNDS_DIR /usr/share/sounds/freedesktop/stereo Directory of the wake chime and error bell
EASYSPEAK_WHISPER_COMPUTE_TYPE int8 CTranslate2 compute type
EASYSPEAK_WHISPER_CPU_THREADS 0 CPU threads for transcription (0 = auto)
EASYSPEAK_WHISPER_MODEL an installed language pack's model faster-whisper model for transcription
EASYSPEAK_SILENCE_THRESHOLD measured at startup Amplitude below which audio counts as quiet

Speech is recognized with NVIDIA's Parakeet TDT v3 by default: one model for 25 European languages, several times faster than Whisper on a short command, with punctuation and capitalization of its own. It picks the language itself. EASYSPEAK_STT=whisper uses the language pack's Whisper model instead, which is also what happens, with a warning, when the Parakeet model is neither installed nor allowed to download, or when EASYSPEAK_LANGUAGE is one Parakeet does not cover.

EASYSPEAK_TTS names the reply-voice engine; Piper is the only engine yet. An unknown name warns at startup, and Piper speaks. EASYSPEAK_TTS_VOICE names that engine's voice, for Piper the path to a voice .onnx with its .onnx.json next to it. It defaults to the voice of the pack the replies are spoken in, else ~/.local/share/piper/en_US-amy-medium.onnx. Its older name, EASYSPEAK_PIPER_MODEL, still works, with a warning; EASYSPEAK_TTS_VOICE wins if both are set.

EASYSPEAK_LANGUAGE is the language you dictate in, and the language of the spoken replies where they are translated (German, Italian, French and Spanish are) and that language's pack is installed. Commands take that language's words where a plugin has them (see Commands); the English ones always work. Where the replies fall back to English, or the code is not one Whisper knows, a warning at startup says so. It picks which installed language pack EASYSPEAK_WHISPER_MODEL defaults to; without one it falls back to base.en for English and to the multilingual small for any other language (a download, see EASYSPEAK_OFFLINE).

EASYSPEAK_SILENCE_THRESHOLD is normally left alone. On startup EasySpeak listens to the room for a second and sets the threshold above whatever it measures — a fixed value assumes a quiet room, and where the ambient level sits above it (a desk fan, a desktop machine) silence is never detected, so every recording runs to its full time cap and every command feels slow. The measured floor is printed at startup:

Room noise floor 412; silence threshold 1030

Set the variable to skip the measurement, e.g. if you happen to be talking during the first second after launch.

EasySpeak listens through a noise-suppressed copy of the microphone that it makes for itself with PipeWire, so a fan or an air filter doesn't keep every recording running to its time cap. Other applications keep the plain microphone, and the filter goes away when EasySpeak sleeps or quits. It needs pw-cli (in pipewire-utils on Fedora, pipewire-bin on Debian and Ubuntu); without it, or where PipeWire lacks the filter, EasySpeak logs a warning and uses the plain microphone. Set EASYSPEAK_NOISE_FILTER=0 to always use the plain one. The filter removes steady noise, not voices, so a TV still gets heard.

EASYSPEAK_HOTKEY takes the ctrl/shift/alt/super aliases or raw evdev key names joined with + (e.g. ctrl+space); set it to empty, off, or none to turn it off, and an unrecognized key disables it too. See Packaging for the device access it needs.

core.log

Variable Default Effect
EASYSPEAK_LOG_LEVEL INFO Logging level when no -d/-q flag is given

core.desktop_integration

Variable Default Effect
EASYSPEAK_LAUNCHER Program that --configure writes into the menu and login entries, set by a launcher that wraps EasySpeak, such as the Nix one

plugins.dictation

Variable Default Effect
EASYSPEAK_ATSPI_PYTHON probed Interpreter running the dictation AT-SPI helper
EASYSPEAK_PASTE_KEYS per app Keystroke that pastes dictated text

Dictation types by putting the text on the clipboard and sending a paste keystroke — every toolkit implements paste, whereas accessibility-level insertion is widely stubbed out. EASYSPEAK_PASTE_KEYS overrides the chord, e.g. shift+insert; by default it is Ctrl+V, or Ctrl+Shift+V when a terminal has focus. It accepts ctrl, shift, alt, super, insert and v joined with +.

EASYSPEAK_ATSPI_PYTHON is normally left alone. The AT-SPI helper needs PyGObject and the AT-SPI typelib, which the application's own virtual environment usually lacks, so candidate interpreters are probed with the helper's real import chain and the first that works is kept. Set the variable to point straight at one (the Nix flake does).

plugins.headtrack

Variable Default Effect
EASYSPEAK_CAMERA first found Camera head tracking looks through

One camera owns several /dev/video* nodes, only one of which streams video, so head tracking asks the kernel which node that is and takes the lowest-numbered camera it finds. A machine with a single webcam needs nothing set.

Where there is more than one, head tracking logs each camera with its number and name at startup. Set EASYSPEAK_CAMERA to the number of the one you want, e.g. EASYSPEAK_CAMERA=4. A capture card or a virtual camera is indistinguishable from a webcam to the kernel, so this is how you choose between them.