Skip to content

Latest commit

 

History

History
216 lines (162 loc) · 21.3 KB

README.md

File metadata and controls

216 lines (162 loc) · 21.3 KB

Vox

CI Latest release License: MIT Platform: macOS Local-first

A floating voice pill for macOS that lets you talk to your Orca or Conductor worktrees instead of alt-tabbing between them.

Vox: launch an agent by voice, then hear its answer
The loop, sped up: a spoken command launches an agent on findy, and Vox says so when it answers.

Vox startup recap
The startup recap — full mp4 for higher quality.

What it does

Vox sits at the bottom of your screen as a tiny always-on-top glass bead (28 px) — it stays that size whether idle, listening, thinking or speaking. Hit Option+Space and talk.

The loop it closes:

Launch — "lance un agent sur findy pour corriger les tests" — and it goes, on any repo Orca (or Conductor) knows about. Follow — "où en sont mes agents ?" — answered from what is actually running, with elapsed time. Hear back — when an agent answers, Vox tells you out loud, summarized or word for word. If it's blocked on you, just answer — "oui vas-y", "non", "fais plutôt X" — and it goes to that worktree, no project name needed (90 s window, FR/EN, no LLM involved). Ask — "il a dit quoi ?" — the result stays answerable for half an hour.

On launch it asks Orca what every worktree is doing and speaks a recap: which agent is working, which is blocked on you, which errored, and what to look at first. Everything runs on your machine by default — no cloud calls, no API keys.

Everything runs on your machine. No cloud calls, no API keys.

Features

  • Voice orchestrator, not a chatbot. Vox reads Orca's CLI (or Conductor's SQLite database, read-only) to know every worktree's agent, status, and last message, and uses that as grounding for every answer — it's told never to invent a project, PR, or bug that isn't in the data. Repos you've hidden in Conductor (or archived worktrees in Orca) are ignored everywhere (recap, carousel, voice targeting).
  • Startup recap with a live carousel. On launch, once the local TTS model is warm, Vox speaks a one-sentence status for each in-progress worktree (agent still working / errored / waiting on you / done and ready to test) while the pill expands into a vertical carousel of worktree cards that scrolls to whichever one is being discussed. Quiet worktrees are grouped into a single line instead of repeated one by one, phrasing rotates between runs, and the recap closes with an LLM recommendation grounded in each worktree's original ask — including a proposed follow-up prompt when an agent's result looks done. Option+Space skips it, and the recap button (revealed on hover over the pill, and in the open project list) replays it anytime.
  • Live transcript. What Vox says appears sentence-by-sentence as it's spoken, and the last sentence — usually the recommendation — stays readable after the voice stops.
  • Streaming replies. Speech starts on the first complete sentence while the local LLM is still generating the rest — sentence N+1 is synthesized while sentence N plays.
  • Launch an agent on any repo, as many as you want. One launch_agent command targets a repo name, a worktree codename, or "here" for the active project — every repo Conductor knows about, not just the ones with work in progress. Names are matched exactly first, then fuzzily (so a mangled transcription still lands), and a name that matches two repos equally is a spoken question rather than a coin flip. Up to four agents run at once; ⌥Space within two seconds of a launch cancels it, and "stop" kills them all.
  • Vox tells you when an agent finishes. As soon as an agent produces an answer — one Vox launched, or one you started inside Orca or Conductor — it speaks it: a one-sentence summary, or the answer read out verbatim, depending on a setting (long answers fall back to a summary automatically). Announcements wait for silence, never interrupt you, survive an ⌥Space (they come back rather than being lost), and the result stays in memory so you can ask "what did it say?" afterwards.
  • Local by default, your choice otherwise. Speech-to-text via a resident Parakeet (MLX) daemon; text-to-speech via Kokoro (English) or Piper (French), with macOS say as a last-resort fallback. The brain — the model that turns your voice into an action — is a picker: any model pulled in Ollama (default qwen2.5:3b, fastest), your Claude or Codex subscription through their CLI with no API key, or the Anthropic / OpenAI APIs. A subscription CLI understands more but takes seconds rather than under one; the trade-off is yours.
  • Knows your project names. Repo names, worktree codenames and branches (Orca, or Conductor when Orca is absent) are fed to Whisper as vocabulary (voice commands and dictation), and on voice commands a strict correction pass fixes near-miss repo/codename transcriptions ("findi" → "findy") — zero setup. Each correction is suggested in Settings → Vocabulary; nothing is saved until you accept.
  • Bilingual, fully switchable. French and English each get their own STT language hint, system prompt, and TTS voice. Flipping the toggle in settings restarts the speech daemons and clears the conversation so the model doesn't carry over the wrong language.
  • Native macOS pill. Real-time desktop blur clipped to the pill's rounded corners (window-vibrancy + NSVisualEffectView), floats above fullscreen apps and every Space, a bead whose glyph colour and tempo show the state (listening, thinking, speaking, agents running, announcement waiting), and a per-letter transcript reveal in a floating caption above the bead so you can see what Vox heard.
  • Barge-in. Vox's own audio playback runs through the browser's echo-cancelled mic pipeline, so you can just start talking to cut it off mid-sentence — no separate "stop" gesture needed.
  • Dictation anywhere. Hold Fn, speak, release: the text is typed at your cursor in whatever app is in front — Slack, Mail, a code editor, a browser field. Double-tap Fn for hands-free (press again to finish), Esc cancels, and Fn used in a shortcut (Fn+←) is ignored. The key is your choice: Fn, right ⌥, right ⌘, right ⇧ or ⌥⇧Space. The mic is captured natively and stays warm for 20 s after a dictation, so the next one starts with 400 ms of audio from before the key press. Vox reads the text around your cursor (text markers included, so Chrome, Electron and web editors work, placeholders ignored), the brain cleans the transcript to fit in, with per-app style for mail, chat and notes; your replacements and correct spacing are applied last, and ⌘V is sent for your keyboard layout (Dvorak included), with your clipboard put back afterwards. Cleanup is optional (Raw transcript) and falls back to the raw text if the model is slow. Needs Accessibility (System Settings → Privacy & Security → Accessibility; after a reinstall, remove and re-add Vox there); for Fn, also set Keyboard → "Press 🌐 key to" → "Do Nothing" — the settings panel tells you when either is missing. Edit by voice: select some text, hold the key and say "rends ça plus poli", "traduis en anglais", "raccourcis" — the brain rewrites the selection and ⌘V replaces it (works even with Raw transcript; if the model fails or times out the selection is left untouched). Any non-empty selection triggers it, so click away to dictate normally; with a cloud/CLI brain the selected text leaves your machine. Dictations are logged to ~/.vox/dictations.jsonl. A port of Amical's pipeline (MIT).
  • Choice of speech model. Parakeet v3 (default — MLX, about 0.05 s per sentence on Apple Silicon, multilingual, but no vocabulary priming), Whisper large-v3 turbo (MLX), or Whisper small (lightweight; also the automatic fallback when the chosen engine is missing, and the default on Intel Macs). Picked in settings, installed on demand into ~/.vox/venv; used for both dictation and the assistant.
  • Vocabulary. Words Whisper keeps mangling, and from => to replacements, edited in settings (stored in ~/.vox/vocabulary.json). Used by dictation.
  • Pronunciation dictionary. Drop word → phonetic pairs in ~/.vox/pronunciations.json (e.g. {"Orca": "orka"}) to fix names the TTS engine mangles.
  • Settings window (Cmd+,, or Settings… in the menu-bar icon): choose the brain (provider + model, on one row — the model list follows the provider), toggle FR/EN, pick how agent answers are spoken, choose whether a voice-launched agent runs in Orca or headless, see the running version, and check GitHub for a newer release.

Requirements

  • macOS 12 (Monterey) or later — built for Apple Silicon.
  • Ollama installed and running, with at least one model pulled.
  • Python 3.11+ (used once to create ~/.vox/venv; the speech stack installs itself into it, isolated from your system Python).
  • Orca (default) or Conductor if you want the worktree recap and voice-launched agents — pick one with the backend setting. Vox still runs without either, it just has nothing to recap.
  • The Claude Code CLI (claude) on your PATH if you want Vox to launch agents by voice with Conductor (with Orca, the agent starts inside Orca itself).

Install

  1. Download the latest .dmg from Releases.
  2. Open it and drag Vox into Applications.
  3. Releases after 0.5.0 are signed with a Developer ID and notarised by Apple, so macOS opens them directly. With 0.5.0 or older from this page, macOS refuses the ad hoc build the first time: right-click Vox.app → Open and confirm once.
  4. Launch Vox. On first run it detects what's missing and auto-installs the local speech stack (Parakeet, Kokoro, Piper) into ~/.vox/venv — a small panel shows the progress. No separate setup script. You just need Python 3.11+ and an internet connection for that first install (scripts/install.sh still exists as a manual fallback).
  5. Make sure Ollama has a model pulled:
    ollama pull qwen2.5:3b
  6. Option+Space to talk.

Usage

Shortcut Action
Option+Space Start/stop listening. Also interrupts Vox while it's speaking or during the startup recap.
Fn (configurable) Dictate into the app in front: hold to talk, release to type. Double-tap for hands-free, press again to finish; Esc cancels.
Cmd+, Open the Settings window (focus it if already open; Esc / Cmd+W close it) — tabs Dictation, Voice, Brain, Agents, About; every setting has a ↺ to go back to its default. Only active while Vox is focused, or from the tray icon.

Click the pill to open the project list. Settings live in their own window: Cmd+, or the tray icon's Settings….

Example things to say:

English

  • "Launch an agent on findy to fix the failing tests."
  • "Prompt the my-app worktree to add error handling to the login flow."
  • "Switch to the api project."
  • "What's the status on my-app?"

Français

  • "Lance un agent sur findy pour corriger les tests qui échouent."
  • "Envoie un prompt au worktree my-app pour ajouter la gestion d'erreur au login."
  • "Passe sur le projet api."
  • "Où en est mon-app ?"

Vox replies in one short spoken sentence — it's built to be glanceable and interruptible, not a conversation partner.

Configuration

All config lives under ~/.vox/:

  • settings.json — model and language. Written whenever you change something in the settings panel.
    {
      "model": "qwen2.5:3b",
      "language": "en",
      "agent_reply": "summary",
      "agent_reply_max_chars": 420,
      "tts_engine": "auto",
      "backend": "orca"
    }
    backend is orca (default) or conductor: where Vox reads your worktrees and agents from, and where voice-launched agents run. It's also a selector in the settings panel and applies on the next turn, no restart. agent_reply is summary (default), verbatim, or off — off still remembers results and still answers questions about them, it just never speaks unprompted. Verbatim switches to a summary past agent_reply_max_chars of cleaned text (~30 seconds of speech). tts_engine is auto (Kokoro for English, Piper for French) or an explicit kokoro / piper / qwen3 / say.
  • projects.json — project name → filesystem path, used by the "switch project" voice command. Auto-created on first launch with the folder Vox was started from.
    { "vox": "/Users/you/code/vox", "my-app": "/Users/you/code/my-app" }
  • pronunciations.json — word → phonetic respelling, applied before text hits the TTS engine. Not created automatically; add it yourself.
    { "Orca": "orka" }
    This doubles as a speech-recognition alias: if you taught the voice to say orivo as oreevo, Vox also accepts hearing "oreevo" and resolves it back.
  • aliases.json — optional, spoken form → real name, for repos whose names Whisper mangles. Not created automatically.
    { "orie vo": "orivo" }

Advanced: environment variables override the persisted settings at launch, mainly useful for development — VOX_MODEL, VOX_LANG, VOX_PROJECT, VOX_TTS, VOX_SAY_VOICE, VOX_AGENT_TIMEOUT (Conductor agents only), VOX_AGENT_REPLY, VOX_BACKEND, plus:

  • VOX_MAX_AGENTS (default 4) — simultaneous agents. Each headless one is a full Claude Code process and they share a rate limit; past four a laptop also running Ollama and a speech model starts to crawl. Over the cap Vox refuses out loud rather than queueing silently.
  • VOX_DRAFT_MODEL — a second local model used only to expand a spoken request into a full agent prompt. It runs after the spoken confirmation, so a bigger model's latency is invisible. Defaults to the main model.
  • VOX_DEBUG_SAY="…" — drive one full turn at startup without a microphone. The mic needs a signed bundle, so this is the way to exercise the loop from npm run tauri dev.

Logs live in ~/Library/Logs/Vox/vox.log (rotated at 5 MB, one vox.log.1 kept) when Vox is launched from Finder or the Dock; from a terminal they go to the terminal.

Two agents in the same worktree is allowed (Vox says "that's two agents on findy now") but they can conflict on files — it's the same situation as two terminals in one directory.

How it works

Vox is a Tauri 2 app: a Rust backend (src-tauri/) driving a small always-on-top webview (renderer/index.html) that renders the pill, captures the mic, and plays audio back — keeping playback in the browser is what makes echo-cancelled barge-in possible.

  • Speech in — the renderer runs local voice-activity detection on the mic stream, encodes a 16kHz mono WAV, and sends it to Rust.
  • STT — Rust hands the WAV to a long-lived Python daemon (src-tauri/resources/vox_stt.py) that keeps a Parakeet model resident in memory and talks over a line-based stdin/stdout protocol; it falls back to the whisper CLI if the daemon isn't available.
  • Brain — the transcript, plus a fresh read of your Orca (or Conductor) worktree state (including each session's original ask), go to Ollama's OpenAI-compatible endpoint as a streamed request with three function-call tools (launch_agent, prompt_worktree, switch_project). Models without native tool-calling get a JSON-object prompt fallback.
  • TTS — reply sentences are queued into a resident Kokoro (English) or Piper (French) daemon (vox_tts.py / vox_tts_piper.py) as the LLM generates them — or macOS say if neither is available. The renderer plays each WAV; synthesis runs one sentence ahead of playback.
  • Orca state (default backend) — through the orca CLI with --json: worktree ps gives every worktree's agents (state, original prompt, last answer) and repo list adds repos with no activity, so any repo is a launch target. Calls are time-boxed (5 s); if Orca isn't running, Vox behaves as if it had nothing to recap. The watcher polls the same call and announces an agent when it turns done, errors, or needs you (blocked on a permission or a question).
  • Orca agents — a voice-launched task becomes orca agent launch --agent claude --worktree path:<dir> --prompt <task>: the agent opens as a tab in Orca, where you can watch it and take over, and Vox speaks its answer when it finishes. The concurrency cap counts agents working in Orca. "Stop" closes the tabs of agents Vox launched that are still busy; anything Orca won't close has to be stopped in Orca. Quitting Vox leaves them running. The deny list below does not apply: Orca starts a normal interactive Claude Code session that asks before risky tools as usual (and Vox tells you when it is waiting on you).
  • Conductor state (backend: conductor) — read-only, via the system sqlite3 CLI against Conductor's own database (~/Library/Application Support/com.conductor.app/conductor.db). Vox never writes to it.
  • Conductor agents — voice-launched tasks run as claude --print --dangerously-skip-permissions "<task>" in the target worktree (the active project, or any worktree resolved by name from Conductor's database; Orca agents are launched as above), with a 10-minute default timeout (VOX_AGENT_TIMEOUT) and a live agent-count badge on the pill. Because nobody can approve prompts in --print mode, agents get a hard deny list (--disallowedTools) covering git push, git reset --hard, git clean, git branch -D, rm -rf, sudo, gh pr merge, gh release, npm publish and cargo publish.

Evey licence (optional)

Vox is open source and fully usable without a key — nothing is locked. If you have an Evey subscription, paste your key in Settings → About → Evey licence (or click vox://activate?key=... on your access page). It is checked online every 12 hours and stays valid offline for 14 days. What it unlocks will come later.

Building from source

Prerequisites: Node 20+, a stable Rust toolchain, and Xcode Command Line Tools (for the macOS-only blur and window APIs).

npm install
npm run dev          # run locally (file watcher off — see .taurignore)
npm run tauri build  # produce a release .app bundle

The GitHub Actions release workflow (.github/workflows/release.yml) additionally builds a .dmg and attaches it to the release on every v* tag push. It signs the app and the .dmg with the Developer ID certificate, notarises and staples both, so Gatekeeper opens them directly; when the R2 secrets are set it also publishes the .dmg to evey.run/download/vox. The secrets it needs are listed at the top of the workflow.

Evaluating a new voice

Qwen3-TTS ships as an optional third engine, installed from the setup panel into its own virtualenv (~/.vox/venv-qwen) so a failed experiment can't disturb Kokoro or Piper. Once installed, a Voice row appears in settings; changing it restarts the daemon and immediately speaks a sample line.

Measure before replacing anything:

python3 scripts/vox_tts_bench.py --engines piper,kokoro --langs fr --repeat 3   # baseline first
python3 scripts/vox_tts_bench.py --engines piper,kokoro,qwen3 --langs fr,en --repeat 3

It drives the daemons exactly as Rust does and writes report.md (cold start, time to first sentence, RTF, peak RSS), bench.json, the WAVs side by side, and ab.html — a blind listening test with the engine names folded away. report.md carries the pass/fail thresholds; the quality call is made by ear.

Baseline on an M-series Mac, French, 14 sentences × 2:

engine cold ms 1st sentence synth p95 RTF p95 peak RSS
piper 600 111 ms 111 ms 0.025 365 MB
kokoro 4901 369 ms 609 ms 0.105 2158 MB

scripts/vox_tts_selftest.py guards the shared text-normalisation module against regressions.

Roadmap

  • Deeper multi-agent orchestration — threading the ongoing voice conversation into follow-up prompts across several agents at once.
  • True auto-update — today Cmd+, only checks the latest GitHub release and opens the download page; no in-place install yet.
  • Windows/Linux, maybe — the pill's native blur depends on NSVisualEffectView, which is macOS-only, so this isn't a near-term priority.

Contributing

Issues and PRs are welcome. See CONTRIBUTING.md for dev setup (including the microphone‑in‑dev gotcha and scripts/dev-bundle.sh), and the Code of Conduct. For anything security‑related, please follow SECURITY.md rather than opening a public issue.

Vox is local‑first by design — no cloud calls, no API keys, no telemetry — so please keep contributions on‑device.

License

MIT — see LICENSE.