Design a Sub-Second Voice Agent Pipeline Around a Fast LLM

Last updated: November 29, 2026

Quick Overview

Design an end-to-end voice agent (speech in, speech out) for customer support calls where the LLM must start responding within about 170 ms, covering streaming ASR, turn detection, LLM calls with tools, streaming TTS, barge-in, and how you budget latency across components.

Inception
ML System Design
Machine Learning Engineer
Inception
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

0

0 solved


Design an end-to-end voice agent (speech in, speech out) for customer support calls where the LLM must start responding within about 170 ms, covering streaming ASR, turn detection, LLM calls with tools, streaming TTS, barge-in, and how you budget latency across components.

Inception markets Mercury Voice for voice agents, so engineers and solutions teams need to show customers how a fast model changes the whole pipeline. The interviewer checks a concrete latency budget, overlap between stages, and the conversational edge cases that make voice harder than chat.

What the Interviewer Expects
  • Build an explicit latency budget from end of user speech to first audio byte
  • Overlap stages with streaming ASR, early LLM calls and incremental TTS
  • Handle end-of-turn detection and barge-in correctly
  • Keep tool calls from blowing the budget with fillers or speculation
  • Define quality metrics beyond latency such as task success and interruption rate
Key Topics to Cover
Voice Agents
Streaming ASR
Latency Budgeting
Turn Detection
TTS
Tool Use
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How would you speculatively start the LLM before the user has definitely finished?
  • Where would you place servers relative to telephony providers, and why?
  • How do you evaluate a new model version on voice without live calls?
  • What do you do when a tool call takes two seconds?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Phone or WebRTC calls, natural turn taking, perceived response latency under about 800 ms from end of user speech to first audio, interruption support, tool calls into the customer's CRM, transcripts ...

High-Level Design

Media gateway (SIP/WebRTC) streams 20 ms audio frames to a session server colocated in the same region. Pipeline per call: streaming ASR producing partial and final transcripts, a voice activity and e...


Submit Your Answer
Markdown supported

Related Questions