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
November 29, 20260
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
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- 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 ProblemsSample 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
Retell AI Machine Learning Engineer Interview Guide
Interview process, tips, and preparation timeline