‹ Harness Lab

STAGE 9 · VOICE AND REALTIME

Voice agent: stream, speak, interrupt

A simulated realtime voice loop with real token streaming, a tool call streaming in parallel, and an interrupt whose latency is measured, not asserted.

Controls

Checking speechSynthesis availability.

State timeline

Listening Thinking Tool calling Speaking Interrupted Done

State: idle

Mic level (fake VAD): 0%

Conversation

YOU (SIMULATED ASR)(waiting to listen)
AGENT (STREAMING TOKENS)
AGENT (ACKNOWLEDGING)

Tool calls, streaming in parallel


    

Tool results are simulated data. The streaming, the interleaving, and the teardown are real.

Interrupt measurement

Interrupt latency: not measured yet. Start a conversation, then interrupt mid-stream.

Measured with performance.now() around the full teardown: every pending timer cleared, the token and tool streams frozen, and speechSynthesis cancelled. On a healthy browser this lands well under 100 ms.

What this proves