Give your LLMs a voice. Dictate, speak, and converse with any OpenAI-compatible LLM from a global hotkey on Linux.
Project description
AverVOX OSS - Give your LLMs a voice.
Website Edition version: 0.5.2
Add voice to any OpenAI-compatible endpoint, local or remote. Any app with focus can receive your speech as text. Select text to have it read aloud. Hold free-form voice conversations with Large Language Models (LLMs) on Linux.
Key Features
- Local-only voice processing - Both Speech-to-Text (STT) and Text-to-Speech (TTS) run on your own machine. The only network traffic is to the LLM endpoints you configure, which may be:
- Hosted locally (on the same computer or another device on your LAN), or
- Accessed remotely via any inference provider you choose (OpenAI, LocalAI, vLLM, SGLang, LM Studio, Ollama, Hermes Agent, OpenClaw, etc.).
- Tray app + command-line interface - A system-tray GUI for everyday use and a CLI tool (
avrvx) for scripting and automation. - Speech engine for other apps -
avrvx --synthesize,--transcribe, and--capabilitieslet tools such as Hermes Agent and OpenClaw hand their text and recordings to AverVOX instead of a cloud speech API. - Piper TTS - Fast, low-resource local speech synthesis.
- Multiple LLM profiles - Define named endpoints and switch between them instantly via the tray menu.
- XDG-compliant configuration - All settings are stored in YAML files under
~/.config/avervox/; no extra dotfiles clutter your home directory.
Free vs Pro
| Feature | Free | Pro |
|---|---|---|
Speech-to-Text (Ctrl+Alt+Space) |
Yes | Yes |
Text-to-Speech (Ctrl+Alt+S) |
Yes | Yes |
Converse (Ctrl+Alt+C) |
Yes | Yes |
CLI (avrvx --listen, --speak) |
Yes | Yes |
Bridge CLI (--synthesize, --transcribe, --capabilities) |
Yes | Yes |
Warm bridge daemon (--daemon) |
Yes | Yes |
| Piper TTS | Yes | Yes |
| faster-whisper STT | Yes | Yes |
| Voice interrupt | Yes | Yes |
| Conversation HUD | Yes | Yes |
| Streaming TTS | Yes | Yes |
| Kokoro TTS | Yes | |
| TTS speed control | Yes | |
| Custom wake word | Yes | |
| System prompts (per profile) | Yes | |
| Session memory (survives restart) | Yes | |
LAN client/server (avrvx --serve) |
Yes | |
| Dashboard (endpoints, models, profiles) | Yes |
AverVOX OSS is free and open-source. For issues and questions, please open an issue on the project repository. If you want the Pro-only features above (Kokoro TTS, wake word, session memory, LAN, and more), see AverVOX Pro - a one-time, no-subscription companion app, distributed separately (not on GitHub or PyPI).
Installation
git clone https://github.com/avrvx/AverVOX-OSS.git
cd AverVOX-OSS
bash install.sh
This will:
- Install the required system packages (PyGObject, PortAudio, xdotool, xclip)
- Create a Python virtual environment under
~/.local/share/avervox/ - Install all required Python packages
- Download the Piper voice model
- Write an
avrvxlauncher to~/.local/bin/ - Add desktop menu and autostart entries
Alternatively, pip install avervox installs the package; you still need the system dependencies (GTK, xdotool, xclip, portaudio) - see install.sh for the full list.
New to AverVOX OSS? See QUICK_START-OSS.md for a guided tour of the tray app and every Settings tab.
Interaction Modes
| Mode | Shortcut / Command | What it does |
|---|---|---|
| Speech-to-Text | Ctrl+Alt+Space |
Press once to start dictation, speak naturally, press again to stop. Text is inserted as you pause. |
| Text-to-Speech | Ctrl+Alt+S |
Select any text, hit the shortcut, and AverVOX OSS reads it aloud using Piper. |
| Converse | Ctrl+Alt+C |
Hold a conversation with your chosen LLM. |
| CLI | avrvx ... |
Headless commands for scripting (see below). |
Setup
- Local: Start an OpenAI-compatible LLM server such as LM Studio or Ollama and confirm its API base URL.
- Remote: Can be used with any inference provider using an OpenAI-compatible API.
- Right-click the AverVOX OSS tray icon and open Settings...
- Add a profile with a Label and API base URL; click the circular Test Connection button and select a Model.
- Optionally set a Session header if the endpoint supports session-aware conversations.
- Save, then press
Ctrl+Alt+C.
Usage
GUI (system-tray) mode
avrvx
- Starts a tray icon with hotkeys active.
- A desktop notification confirms the app is ready ("AverVOX OSS - Ready - hotkeys active").
- No main window appears; all interaction is via shortcuts or the tray menu.
Tray-icon right-click menu
- LLM: Shows the active profile; click to switch profiles.
- Reload config: Re-reads
config.yamlwithout restarting. - Settings... Opens the full settings dialog.
- Copy Last Response Copies the most recent LLM reply to the clipboard.
- Open Log Opens
avervox.login your default viewer. - About AverVOX OSS Shows version, tagline, and links.
- Quit AverVOX OSS Exits the program.
CLI
# Record speech (VAD auto-stop) and print transcript
avrvx --listen
# Speak literal text
avrvx --speak "Hello world"
# Pipe text from another command
echo "The quick brown fox" | avrvx --speak
# Show version and exit
avrvx --version
# Combine with any tool
avrvx --listen | my-llm-tool | avrvx --speak
Bridge CLI (for other applications)
Three commands let other programs use AverVOX as their local speech engine without embedding anything. Unlike --speak and --listen, they exchange files and JSON instead of driving your speakers and microphone directly.
# Synthesize to a WAV file instead of playing it
avrvx --synthesize --text "Deployment complete" --output /tmp/reply.wav
avrvx --synthesize --text-file /tmp/reply.txt --output /tmp/reply.wav
echo "Deployment complete" | avrvx --synthesize --text - --output /tmp/reply.wav
# Pick a voice and a rate for one call, without changing your settings
avrvx --synthesize --text "Slow down" --voice en_GB-alba-medium --speed 0.9 --output /tmp/reply.wav
# Transcribe an existing recording or voice message
avrvx --transcribe /tmp/voice-message.ogg
# Ask what this install can do (JSON on stdout)
avrvx --capabilities
Notes:
--synthesizewrites a mono 16-bit PCM WAV at the engine's sample rate, prints the path on stdout, and creates the file mode0600. The output directory must already exist.- Prefer
--text-fileor--text -(stdin) over--text "…"for anything sensitive: arguments are visible to other users in the process list. --voiceand--speedoverride your configured defaults for a single call.--capabilitieslists the installed voices undertts.voices, so a host application can offer a picker.--transcribeprints the transcript on stdout and exits non-zero when no speech was found. Anything ffmpeg can decode works.--capabilitiesprints a JSON object on stdout (diagnostics stay on stderr, so it is always safe to pipe into a parser) reportingedition,licensed,version, the available TTS engines and voices, the STT model, and afeaturesmap. Host integrations use it to detect OSS versus Pro instead of shipping separate builds.- Sending
SIGTERMstops synthesis cleanly and exits130, which lets a caller tell a cancelled request from a failed one.
Streaming to stdout
--output - writes headerless mono PCM16 to stdout as it is generated, and announces the format on stderr before the first sample. Audio starts playing after the first sentence instead of after the whole passage:
avrvx --synthesize --text-file reply.txt --output - | aplay -f S16_LE -r 22050 -c 1
Use the sample rate printed on stderr rather than assuming one: Piper's medium voices run at 22050 Hz and its low voices at 16000 Hz.
Warm bridge daemon
Every avrvx call pays for a Python start plus a model load before it produces a sample, which a program speaking every reply pays on every turn. avrvx --daemon pays it once and then serves requests over a Unix socket at $XDG_RUNTIME_DIR/avervox/bridge.sock, created mode 0600 inside a 0700 directory so nothing else on the machine can reach it.
avrvx --daemon &
avrvx --capabilities # features.daemon reports the socket path and whether it is up
The protocol is newline-delimited JSON — capabilities, synthesize, transcribe, cancel, and ping — with an optional framed streaming mode for synthesize. The daemon is purely an optimisation: the integration packages try the socket first and fall back to spawning avrvx, so nothing breaks if you never start it. A systemd --user unit is included in the integrations repository.
Setting up a host application
--install-integration writes the speech configuration for a supported host and then checks the result by synthesizing real audio, which catches the usual causes of "I pasted the config and nothing happens" — avrvx not on PATH, or no voice installed:
avrvx --install-integration hermes # or: openclaw
An existing host configuration is never modified. If one is already present, the snippet is written alongside it for you to merge, and the command says so. It exits non-zero when synthesis fails, so it is safe to use in a provisioning script.
Ready-made integration packages for Hermes Agent and OpenClaw, plus an Odysseus guide, are published at github.com/avrvx/AverVOX-Integrations; each has its own README, and the repository README documents the daemon protocol in full.
Scripting your assistant
AverVOX OSS is built for terminal pipelines. Example workflows:
echo "Build succeeded" | avrvx --speak
avrvx --speak "Deployment complete"
avrvx --listen # capture speech, output transcript
avrvx --listen | my-tool | avrvx --speak # pipe through an LLM or other processor
Running avrvx with no flags launches the system-tray app described above.
Converse
- How to start - Press Ctrl+Alt+C.
- HUD pill - A colour-coded pill indicator shows the current state:
- Red = Listening
- Orange = Processing
- Green = Streaming response
- Interaction flow - Speech -> STT -> LLM -> streaming TTS. Playback begins as soon as the first sentence is ready and continues with minimal gaps while the model finishes generating. After each reply AverVOX OSS automatically listens for the next turn.
- Ending a conversation - any of these will stop the loop:
- Say a goodbye phrase (e.g., "talk to you later", "goodbye", "that's all"). Customisable in Settings or
converse.goodbye_phrases. - Remain silent for the configured silence timeout (default 7 s,
converse.silence_timeout_ms). - Press Ctrl+Alt+C again.
- Say a goodbye phrase (e.g., "talk to you later", "goodbye", "that's all"). Customisable in Settings or
- Voice interrupt (barge-in) - When enabled in Settings, you can interrupt the assistant mid-response simply by speaking; AverVOX OSS stops playback immediately and listens for your next turn. This requires headphones - without them, the TTS audio feeds back into the microphone and triggers false interrupts.
- Markdown stripping - LLM output is cleaned of markup (headings, bold, code blocks, links, etc.) before it is spoken, so the audio sounds natural rather than reading out syntax.
- Echo prevention - The microphone is muted while TTS is playing, and a configurable re-arm delay (default 250 ms,
converse.rearm_delay_ms) is applied before the mic reopens. Headphones are recommended. - Session tracking - If your LLM endpoint supports session-aware conversations, set the Session header field in the LLM profile (e.g.,
X-Hermes-Session-Id). AverVOX OSS sends a UUID with each request; if the server returns a different ID it adopts that for the rest of the app session. OSS supports session headers for the current app session; persistent sessions that survive restarts are a Pro feature. - State machine
IDLE -> LISTENING <-> TRANSCRIBING -> CONVERSING -> SPEAKING -> (rearm delay) (loop)
`- silence timeout or goodbye phrase -> IDLE
The microphone stays off during the entire STT -> LLM -> TTS pipeline; the configurable re-arm delay reduces speaker-to-mic feedback before listening resumes.
How It Works
AverVOX OSS is built around a simple pipeline: your voice goes in, text comes out (or vice versa), with an LLM in the middle if you want one. Here's what's doing the work under the hood.
Voice I/O uses parec + sounddevice for audio capture and playback, with webrtcvad handling voice activity detection. STT is handled by faster-whisper; TTS by Piper (an ONNX model, ~16 MB, very fast). Sentences are streamed to the TTS engine as they arrive from the LLM, so playback starts almost immediately rather than waiting for a full response.
LLM connectivity goes through httpx to any /v1-compatible endpoint - LM Studio, Ollama, Hermes Agent, OpenClaw, OpenAI, whatever you're running. Responses stream via SSE. Markdown is stripped before speech so you don't hear "asterisk asterisk bold asterisk asterisk."
Activation is handled by pynput for global hotkeys. Both X11 and Wayland (via XWayland) are supported. Text selection uses xclip; text injection uses xdotool or the clipboard depending on the target app.
Architecture
Activation layer
`- Hotkeys (pynput) -> Ctrl+Alt+Space = Speech-to-Text
-> Ctrl+Alt+S = Text-to-Speech
-> Ctrl+Alt+C = Converse
Services layer
- SpeechService - STT (faster-whisper)
- InsertService - xdotool / clipboard text injection
- LLMService - httpx -> any OpenAI-compatible API (streaming SSE)
Core components
- TTS engine: Piper (ONNX, ~16 MB)
- Audio I/O: parec + sounddevice + webrtcvad
- Selection provider: xclip
Source layout
src/avervox/
|-- __init__.py # package metadata
|-- __main__.py # CLI entry point (--listen, --speak, --synthesize, --transcribe, --capabilities, --daemon, --install-integration, --version, or GUI)
|-- main.py # GUI controller (state machine, hotkey handlers, notifications)
|-- config.py # configuration loading, LLM profiles, dataclasses
|-- audio.py # microphone capture + VAD/recorder + interrupt monitor
|-- stt.py # speech-to-text (faster-whisper)
|-- tts.py # text-to-speech engine (Piper), markdown stripping
|-- text.py # sentence splitting shared by the LLM stream and TTS
|-- bridge_server.py # avrvx --daemon: Unix-socket speech server for host apps
|-- integration_install.py # avrvx --install-integration: host config + self-check
|-- inserter.py # text insertion + selection grabbing
|-- hotkeys.py # global hotkey manager (pynput)
|-- tray.py # system tray icon, profile submenu, copy/log/about menu items
|-- logger.py # logging setup
|-- settings.py # GTK settings dialog (tabbed: hotkeys, LLM, TTS, dictate, converse, advanced)
|-- hud.py # conversation-mode HUD overlay
|-- llm.py # OpenAI-compatible HTTP client (streaming SSE)
`-- services/
|-- __init__.py # service factory (create_services)
|-- base.py # Protocol definitions (SpeechService, InsertService, LLMService)
|-- local.py # local implementations wrapping existing modules
`-- direct.py # DirectLLMService (calls LLM API directly, with streaming)
Configuration
~/.config/avervox/config.yaml (created on first run):
hotkeys:
listen: "<ctrl>+<alt>+space" # Settings -> Hotkeys
speak_selection: "<ctrl>+<alt>+s"
converse: "<ctrl>+<alt>+c"
stt:
model: base # tiny, base, small, medium, large-v3
language: en
device: auto # auto | cpu | cuda
tts:
voice_model: ~/.local/share/piper-tts/voices/en_US-lessac-high.onnx
audio:
vad_aggressiveness: 2 # 0-3 (higher = more aggressive silence detection)
dictate:
interim_pause_ms: 1000 # pause before inserting dictation text (Settings -> Dictate)
backends:
text_inserter: xdotool # xdotool | ydotool - Settings -> Advanced
selection_provider: xclip # xclip | xsel | wl-paste
converse:
end_of_turn_ms: 1100 # pause after you stop speaking (Settings -> Converse)
silence_timeout_ms: 7000 # silence before ending conversation (ms)
rearm_delay_ms: 250 # pause after TTS before mic reopens (ms; skipped with headphones)
early_listen_ms: 300 # pre-open mic before TTS ends (headphones only)
goodbye_phrases: # phrases that end the conversation
- "talk to you later"
- "goodbye"
- "bye bye"
- "see you later"
- "that's all"
- "good night"
- "i'm done"
interrupt_enabled: false # voice interrupt (barge-in) - requires headphones
interrupt_headphones_confirmed: false
llm:
active: my-server
profiles:
my-server:
label: "LM Studio (local)"
api_base: "http://localhost:1234/v1"
api_key: "" # leave blank for local models
default_model: "" # model name returned by /v1/models
session_header: "" # HTTP header for session tracking (e.g. X-Hermes-Session-Id)
Most users only need to edit the llm section, and the Settings dialog handles that. Everything else has sensible defaults. You can add multiple profiles and switch between them from the tray menu.
Backward compatibility: Old flat-format llm: configs (with api_base directly under llm:) are automatically migrated to a single profile on first load.
Secrets: API keys are masked in Settings (show/hide toggle) and stored encrypted in config.yaml as enc:... values, bound to your machine. Existing plaintext keys still load until the next save.
System Requirements
- Linux Mint 21/22 or Ubuntu 22.04/24.04 (X11 or XWayland)
- PulseAudio or PipeWire
- Python 3.12+
Audio Hardware & Environment Tips
| Factor | Recommendation |
|---|---|
| Microphone | USB mic or boom headset for best accuracy |
| Background noise | Reduce fans, traffic, conversations; use a quieter room |
| Room acoustics | Avoid echoey spaces; consider soft furnishings |
| Mic distance/level | Keep a steady distance and avoid clipping |
Adjust Settings -> Dictate and Settings -> Converse to match your conditions. For noisy environments, try a larger STT model (e.g., small).
Performance Tuning
| Setting | Default | Conservative | Where | Effect |
|---|---|---|---|---|
dictate.interim_pause_ms |
1000 | 1500 | Settings -> Dictate | Dictate: pause before typing an interim chunk. |
converse.end_of_turn_ms |
1100 | 1500 | Settings -> Converse | Converse / avrvx --listen: end-of-turn delay. |
rearm_delay_ms |
250 | 500 | config.yaml -> converse |
Pause after TTS before mic reopens (skipped when headphones confirmed). |
silence_timeout_ms |
7000 | 10000 | config.yaml -> converse |
How long to wait with no speech before ending the conversation. |
STT beam_size |
1 | 5 | stt.py |
Greedy (1) is faster; beam search (5) is more accurate for mumbled or technical speech. |
| STT model | base | tiny / small | config.yaml -> stt.model |
tiny is fastest, small/medium more accurate. base is a good middle ground. |
Tips:
- If Converse turns get clipped (cut off mid-sentence), increase
converse.end_of_turn_ms. - If you hear echo (AverVOX OSS responding to its own TTS), increase
rearm_delay_ms. - For the fastest possible turns at the cost of some accuracy, use
stt.model: tinywithbeam_size: 1.
LLM model health & failure detection
During Converse, AverVOX monitors each LLM stream and reacts when a model misbehaves, so you are not left waiting in silence for a minute or more. These thresholds are critical for voice UX — they define how long AverVOX waits before giving up, unloading the model, and switching you to something else.
What gets checked
| Threshold | Default | Defined in | Triggers when |
|---|---|---|---|
| First-token timeout | 30 s | src/avervox/llm_control.py → FIRST_TOKEN_TIMEOUT_S |
No content token arrives within this time after the stream request is sent. Empty SSE keepalive chunks (common with LM Studio) do not count as output. |
| Empty response | 30 s | EMPTY_RESPONSE_MIN_S |
The stream finishes with zero usable content after at least this long. |
| Stream read stall | 90 s | STREAM_READ_TIMEOUT_S |
No SSE bytes at all arrive for this long (connection hung). |
The first-token timer starts when AverVOX sends the chat/completions request. That elapsed time includes model load on the server (e.g. ~11 s for a cold gpt-oss-120b on LM Studio before it can respond) plus generation time until the first word of the reply. Set the threshold high enough to tolerate your slowest healthy cold start, but low enough to catch models that stall (e.g. 70+ s with no speech).
Example: A cold gpt-oss-120b that loads in ~11 s and speaks its first word at ~16 s will pass a 30 s threshold. A model that sends keepalive SSE for 70 s before any content will fail at 30 s.
What happens on failure
- The in-flight request is aborted and the model is unloaded (LM Studio
/api/v1/models/unload, or Ollamakeep_alive: 0). - The model is added to that endpoint's
disabled_modelsinconfig.yaml, with the failure reason recorded. - AverVOX speaks a brief notice and suggests other enabled models on the same endpoint.
- The dashboard greys out the disabled model.
Re-enabling a disabled model
Disabled models stay off for the rest of the current app session (so a bad model is not retried immediately). The next time you start AverVOX, all disabled_models entries are cleared automatically and every model is available again.
To re-enable during the same session without restarting, edit ~/.config/avervox/config.yaml and remove the model from the endpoint's disabled_models map, then reload config from the tray menu:
llm:
endpoints:
my-spark:
disabled_models:
omnicoder-9b: no usable output within 30s # delete this entry
Only re-enable a model during the same session if you have fixed the underlying issue (VRAM, quantisation, server hang, etc.).
Tuning the thresholds
These constants are compile-time defaults in llm_control.py. If your largest healthy model needs more than 30 s on a cold start, increase FIRST_TOKEN_TIMEOUT_S and rebuild/reinstall. If false positives occur on cold loads, raise the value; if bad models leave you waiting too long, lower it.
Troubleshooting
| Symptom | Check / Fix |
|---|---|
| No audio output | Run avrvx --listen to verify capture and playback. |
| Hotkeys don't work | Check journalctl --user -f for pynput/X11 errors. |
| ALSA/Pulse errors | Make sure PulseAudio or PipeWire is running. |
| Converse fails | Open Settings, verify the test button shows a green checkmark and models are listed; check the log for LLM error entries. |
| Model greyed out / "disabled" | A failure threshold tripped — see LLM model health & failure detection above; check disabled_models in config and the log for LLM model failure. |
| Bad transcription | Reduce background noise, move closer to the mic, or switch to a larger STT model (small/medium). |
| Conversation ends too early | Increase converse.end_of_turn_ms or silence_timeout_ms; use headphones to limit speaker bleed in loud environments. |
Log file: ~/.local/share/avervox/avervox.log
Commit attribution
Past commits may show "Cursor Agent" as a co-author due to an unanticipated IDE feature. The code is authored and maintained by Carl E. Hartung. That attribution setting has been turned off going forward.
License
AverVOX OSS is free and open-source software. See the LICENSE file for full terms.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file avrvx-0.5.2.tar.gz.
File metadata
- Download URL: avrvx-0.5.2.tar.gz
- Upload date:
- Size: 87.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89abfadc24512a92c3eb650348284c2dc4a97d8bc3e0b93681112b3374d05ffb
|
|
| MD5 |
ccae000071969e3661663e6894bb44f2
|
|
| BLAKE2b-256 |
60a2f0074185a05d892b0a57fe983610eeaac5c7f3ea3038ee3981cdf4650727
|
File details
Details for the file avrvx-0.5.2-py3-none-any.whl.
File metadata
- Download URL: avrvx-0.5.2-py3-none-any.whl
- Upload date:
- Size: 73.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
320103d37fad9e343cb895c700e566b112488101bf0a1d53e4a2361f82f0a12e
|
|
| MD5 |
e7ef29556a6e0db6b7a2b0dc9015c183
|
|
| BLAKE2b-256 |
512b222c80a771647738e2066a5f13bb8f669a27cb5594cf409f397d3f2250c9
|