work/nomarch-voice

Local speech service

nomarch voice

A locked-down, CPU-only container that gives Mae ears and a voice: streaming speech-to-text and local text-to-speech, with no GPU and no cloud by default.

Live

The listen and speak pipelines, stage by stage.

A voice assistant is only pleasant if it answers quickly, and this one has to do it on a CPU. nomarch voice is the speech half of Mae: it listens, transcribes, and speaks the reply, sentence by sentence, while the rest of nomarch does the thinking.

Runs on
A sandboxed container on the home server, reachable only by the nomarch server
Built with
Python asyncio, faster-whisper, Silero VAD, Kokoro (ONNX), Opus, Rust protocol crates
Started
October 2026

How it works

Two pipelines and a sandbox

  1. The listen and speak pipelines, stage by stage.
    The listen and speak pipelines, stage by stage.
  2. The sandbox: who may call it, what runs inside, and what it can never do.
    The sandbox: who may call it, what runs inside, and what it can never do.

Listening

Silero voice-activity detection finds where speech starts and stops. A small Whisper model (base.en) streams quick partial transcripts in about half a second; when you stop talking, a larger one (small.en) with a household vocabulary makes the accurate final pass in under two seconds. Bigger Whisper models were benchmarked on this CPU and rejected as too slow for a live conversation.

Speaking

Kokoro, an 82-million-parameter voice running on ONNX, starts talking in about 0.7 seconds and streams a sentence at a time. It knows when it has been interrupted. An optional cloud voice exists, used only when the operator allows it. The whole loop aims for about 2.2 seconds from the end of your sentence to the first word of the reply, and the reply plays on whichever device asked.

How it's sandboxed

  • Read-only root filesystem, every Linux capability dropped, no privilege escalation, a process limit, no core dumps and fixed memory and CPU ceilings.
  • Models load offline, are mounted read-only and are pinned by SHA-256 in a lock file.
  • Only the nomarch server's own user can connect. At most two sessions at once, each with a 15-second inference deadline, over a framed binary protocol with bounded frame sizes.
  • The protocol is shared with the Rust side of nomarch, with Opus test fixtures and tests on both ends.

There is no interface to screenshot, so the pictures here are two diagrams drawn from the code and the container definition.

1 / 2

The listen and speak pipelines, stage by stage.
The listen and speak pipelines, stage by stage.