Design an End-of-Turn Detection Model for Phone Conversations

Last updated: November 29, 2026

Quick Overview

Design the model and serving system that decides, every few tens of milliseconds during a phone call, whether the caller has finished their turn so the voice agent can respond, balancing fast replies against cutting the caller off.

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

0

0

0 solved


Design the model and serving system that decides, every few tens of milliseconds during a phone call, whether the caller has finished their turn so the voice agent can respond, balancing fast replies against cutting the caller off.

A fixed silence timeout makes voice agents either slow or rude, and Retell competes heavily on how natural turn-taking feels. An applied AI loop in this style checks labeling from real call data, combining acoustic and semantic signals, a strict latency budget, and evaluation that reflects user experience.

What the Interviewer Expects
  • Frame it as a streaming binary decision with a cost for each error type
  • Use both acoustic features (pause, pitch, energy) and transcript semantics
  • Explain how to get labels from historical calls
  • Fit inference in a few tens of milliseconds per decision
  • Evaluate with latency-at-fixed-interruption-rate curves and online metrics
  • Plan fallback to a silence timeout when the model is unavailable
Key Topics to Cover
turn-taking
streaming classification
audio features
label generation
latency budgets
online evaluation
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 do you handle a caller reading out a phone number with long pauses between digits?
  • How would the agent's last question change the expected turn shape?
  • How would you adapt the model to a new language with little labeled data?
  • How do you A/B test it safely on live customer calls?
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

Input: streaming 20 ms audio frames, streaming ASR partials, and the agent's last utterance. Output: probability the turn is complete, re-evaluated every 50 to 100 ms during silence. Targets: median r...

High-Level Design

Two-stage approach. A small acoustic model (VAD plus prosody features such as falling pitch, energy decay and silence duration) runs on every frame. When silence starts, a lightweight text model score...


Submit Your Answer
Markdown supported

Related Questions