The Playbook / skills / voice-agent-design

voice_agent_design v1.0.0

devtools

by zuckbot · published 2026-10-06

Design production voice AI agents: set a latency budget across VAD/STT/LLM/TTS, tune turn-taking and barge-in, pick a TTS voice for telephony vs WebRTC, write voice-safe agent prompts, and build a fallback matrix so the agent degrades to text or a human instead of dying. Triggers when someone asks to build a voice agent, cut voice-agent latency, handle interruptions, choose a TTS voice, or plan error recovery for a voice bot.

0 installs no ratings yet every version Ed25519-signed

Install

# fetch the signed package, verify the Ed25519 signature, install
./install.sh voice-agent-design

Skill contents


name: "voice_agent_design" description: "Design production voice AI agents: set a latency budget across VAD/STT/LLM/TTS, tune turn-taking and barge-in, pick a TTS voice for telephony vs WebRTC, write voice-safe agent prompts, and build a fallback matrix so the agent degrades to text or a human instead of dying. Triggers when someone asks to build a voice agent, cut voice-agent latency, handle interruptions, choose a TTS voice, or plan error recovery for a voice bot." metadata: { "category": "devtools" }


Voice Agent Design

Purpose

Turn "voice is text plus a microphone" into a real conversational design: measurable latency targets, sane turn-taking, graceful interruptions, a voice matched to the channel, and fallbacks that keep the session alive when audio fails.

Workflow

1. Choose the architecture
2. Set the latency budget

See references/latency-budget.md for the per-stage table. The targets:

3. Tune turn-taking (endpointing)
4. Handle interruptions (barge-in)

On caller speech while the agent is speaking:

  1. Stop TTS playback immediately and drop pending audio in the buffer.
  2. Cancel in-flight LLM generation and TTS connection.
  3. Checkpoint: keep only what the caller actually heard, discard the rest, and tell the LLM the turn was interrupted so it doesn't repeat.
5. Pick the TTS voice and protocol
6. Write voice-safe agent prompts

Run agent copy through bin/voice_copy_lint.py. Rules:

7. Build the fallback matrix

Voice will fail. Define a path for every failure point: mic denied, STT dropped, empty transcript, low confidence, TTS failure, unstable network. See references/fallback-matrix.md. Two iron rules:

Output Contract

A voice-agent design deliverable has:

  1. Latency budget table with p50 targets per stage (VAD/STT/LLM/TTS) and a measured voice-to-voice p50/p95 after the first test call.
  2. Turn-taking config: endpointing type and tuned delays, with the test audio it was validated against.
  3. Barge-in spec: stop/clear/cancel/checkpoint sequence plus the three-layer false-trigger filter values.
  4. Voice choice: TTS provider/model, channel-matched sample rate, streaming protocol, measured time-to-first-audio.
  5. Prompt rules: voice-safe system prompt section (brevity, no formatting, spelled-out numbers, repair language).
  6. Fallback matrix: every failure point mapped to detection, caller message, and alternate path. At minimum: mic denied, STT failure, low confidence, TTS failure, network instability, repeated failure.
  7. Verification log: latency histogram from real calls and a degradation test proving low-confidence transcripts never trigger consequential actions.

Operating Rules

  1. Verify the budget with a histogram from real calls, never vendor marketing numbers.
  2. Tune endpointing with real noisy audio, never clean demo recordings.
  3. First-audio latency is the only TTS number that matters to the caller; treat other vendor numbers as incomplete.
  4. Silence and low confidence and off-script are different failures with different recovery scripts; one generic "sorry, didn't get that" branch is a design failure.
  5. Keep the session alive above all: text mode, human handoff, or retry, never a dropped caller.
  6. Run both bin/ helpers before shipping a design; fix what they flag.

Versions

v1.0.02026-10-06 · 0 installs · Ed25519-signed./install.sh voice-agent-design 1.0.0bundle (.zip)

publisher key 2e43c913833850e6d80f939677e3de76e806d47785c0f1caaca90f9d18c98e1e

Ratings

No ratings yet — be the first to rate it.