VoiceCoder

Hands-free, agentic coding for developers who can't rely on a keyboard or mouse, packaged as a Coder template anyone can spin up.

Speak a request. A local, privacy-first speech model turns it into text in real time. Claude Code edits a real project. You review the result in VS Code Web, without fighting the keyboards, mice, and tiny click targets that most IDEs assume you can use. The whole end-to-end stack ships as a Coder workspace template defined as infrastructure-as-code: add it once, create a workspace, and the mic UI, speech model, AI agent, and editor come up together with zero local setup.


Inspiration

Most coding tools are built for people who can type quickly and click precisely. Plenty of developers can't. Motor disabilities, repetitive strain injuries, limited hand mobility, blindness and low vision, chronic pain, and fatigue all turn "just type it" into a real barrier, and so do temporary injuries or environments where a keyboard isn't practical. Voice assistants exist, but "write me a function" demos don't survive contact with a real repo: diffs, tests, wake words, reconnecting WebSockets, and an editor that has to stay usable with a screen reader.

We wanted something that treated accessibility as the product, not a theme or an afterthought. If you can speak clearly enough for a mic, you should be able to drive an autonomous coding agent that actually changes code, and review those changes in a familiar editor, without needing fine motor control to babysit the UI. Every design decision started from one question: would this still work for someone who can't use their hands, or can't see the screen?

Accessibility tools also tend to die at setup. If getting started means installing a speech model, wiring up an agent, mapping ports, and debugging Docker, the people who need the tool most are the ones locked out, because every one of those steps assumes a keyboard, a mouse, and a lot of patience. So we built on Coder and its cloud development environments: the environment is defined once as a reproducible template, and anyone (a developer, a teammate, a school's disability services office, or an employer providing an accommodation) can create a ready-to-use workspace from it instead of assembling the stack by hand.

The spark was simple: what if the mic started on by default, because clicking "allow" is already a barrier? Coder let us push the same idea one step further: what if the dev environment started ready, because setup is a barrier too?


What it does

VoiceCoder is a full voice-to-code pipeline, delivered as a reproducible Coder workspace:

  1. Provision: Create a workspace from the VoiceCoder Coder template. Terraform sets up the containers, ports, and shared volumes, and a setup script boots the Docker Compose stack in the background so the Coder agent stays connected while services come up.
  2. Capture: The browser captures 16 kHz mono PCM and streams it over a WebSocket in real time. The mic is on by default, so there is no button to find before you can start talking.
  3. Transcribe: A local Parakeet TDT model (via sherpa-onnx) turns speech into text with low latency on CPU, with no audio ever leaving the workspace.
  4. Clean: The Go bridge strips wake phrases (hey VoiceCoder / Coder), optional end words, filler, and spoken punctuation (auth dot py → auth.py), so you can speak naturally instead of dictating syntax character by character.
  5. Act: Cleaned requests go to Claude Code through Coder AgentAPI, which orchestrates the agentic workflow. Saying stop or cancel halts the agent at any time, no click required.
  6. Show: Diffs land in a shared project volume; VS Code Web and the voice UI stay on the same origin so the iframe and /ws proxy just work.

Every workspace built from the template gets the same containerized stack, the same verified speech model from a shared volume, and the same project layout, so "works on my machine" becomes "works in every workspace." The same Compose stack also runs locally.

The interface is built for the people using it: keyboard- and screen-reader-first, native controls, visible focus, status never conveyed by color alone, and screen-reader announcements that report what matters without reading out every half-finished transcript. Raw agent tool calls never get dumped into the activity stream, so a screen reader user hears a clean summary instead of a wall of JSON.


How we built it

We split the system into modular services along team boundaries and a strict protocol:

Piece Role
Frontend React + TypeScript accessible activity stream, mic, VS Code iframe
Bridge Go WebSocket server, STT client, cleaning, agent orchestration
STT Parakeet int8 ONNX in Docker, shared model volume
Agent AgentAPI + Claude Code in a container with the project at /home/coder/project
Template Coder Terraform + setup script for ports, volumes, Compose

Speech path. Audio is chunked (~1 s of PCM). The bridge joins partial transcripts in sequence order, then cleans once on the full utterance (not per chunk) so wake/end words and dot rewriting stay consistent.

Wake and end words. A wake phrase can appear mid-sentence; everything before it is dropped. An optional end word (e.g. over) can finish an utterance without waiting for silence, which helps users whose speech has longer natural pauses. Silence still works: the utterance ends on whichever comes first, hearing the end word or 1.5 seconds of silence after the last speech.

$$ t_{\mathrm{finish}}=\min(t_{\mathrm{end\text{-}word}},\,t_{\mathrm{last\text{-}speech}}+T_{\mathrm{silence}}) $$

While the agent works. We keep listening for spoken stop / cancel, but suppress speech partials (and non-stop transcripts) until agent_result is on the wire, so the UI and the screen reader don't thrash between "hearing you" and "working."

Models that survive Coder. Huge one-shot tarball downloads were getting truncated on shared volumes. We switched to per-file Hugging Face fetches with size/SHA checks and a .voicecoder-complete marker so the next workspace never reuses a half-written encoder (~652 MB).

Same-origin UX. Nginx serves the SPA and proxies /ws to the bridge and /vscode/ to openvscode-server, so HTTPS/Coder proxy rules and the editor iframe don't fight over mixed content.


Challenges we ran into

Corrupt Parakeet downloads. "Protobuf parsing failed" looked like a model bug; it was truncated ONNX on a host-wide volume. Size-only "already downloaded" checks made every new workspace fail the same way. Fixing that meant treating completeness as a first-class invariant, not an optimization.

Coder + Docker provisioners. Workspace creation failed when Terraform's Docker provider couldn't ping unix:///var/run/docker.sock, a provisioner/host issue, not app logic. Separately, long image builds and blocking setup scripts disconnected the Coder agent; we moved Compose to background boots, shared voicecoder-*:latest tags, and stopped paying for a full rebuild on every workspace.

Wake words vs ASR. Users said "Coder"; Parakeet sometimes heard "Code." Bare code can't be a wake word, since it would steal "fix the code in auth.py." Mid-utterance wake matching had to use word boundaries so encoder / decoder didn't false-trigger. For someone who relies entirely on voice, a false trigger isn't a minor annoyance; there's no quick mouse click to undo it.

Stale bridge images. Mid-utterance wake fixes shipped in git, but workspaces kept running old :latest containers. Setup now rebuilds/recreates the bridge (and whisper) so behavior matches the repo.

Frontend build footguns. Ignoring partials while the agent ran interacted badly with TypeScript control-flow analysis (partials narrowed to never), breaking bun run build in Docker. A small typing hotfix unblocked production images.

Accessibility constraints. No "pretty but unusable" shortcuts: native controls, visible focus, color never the only signal, live regions that don't read every partial fragment. Every UI change had to work keyboard-only and under NVDA before it shipped. That slowed visual polish and made the product better.


What we learned

  • Accessibility forces good architecture. Pure session reducers, validated wire protocols, and "components don't touch sockets" weren't ceremony; they kept the UI testable under keyboard-only and NVDA constraints.
  • Designing for disability improves the tool for everyone. Clean activity summaries, voice stop/cancel, and zero-setup workspaces help any developer, not just the ones who need them.
  • Local STT is worth it for latency and privacy, but ops is half the model: shared volumes, checksums, and health endpoints that don't block on load.
  • Voice UX is state, not a mic button. Wake words, silence, end words, queueing during agent runs, and stopping without canceling the wrong thing add up to a real state machine.
  • Deploy like users will actually deploy. Coder templates, Docker socket mounts, and image cache behavior matter as much as the demo path on localhost.

What's next

Tighter ASR-wake integration, richer spoken confirmations without drowning the activity log, and hardening the Coder template so "Docker provisioner + socket" is documented as a hard requirement. We also want to test with more developers who have motor and vision disabilities and let their feedback drive the roadmap. Longer term: optional cloud STT when the host can't spare CPU, without giving up the local-first default.


VoiceCoder: because the hard part of coding shouldn't be the keyboard.

Built With

Share this project:

Updates

Submission history