Clinic scheduling desks, warranty hotlines, and field-service intake lines often swing between two frustrating extremes: rigid keypad IVR menus that drive callers to hang up early, or overwhelmed human queues during peak hours. Connecting AI Voice Agents to PSTN/SIP trunks or embedding live voice inside mobile and web apps lets callers book appointments and log tickets naturally in spoken language.
Building a voice agent is substantially harder than shipping a text chatbot. In chat, users tolerate waiting 2 to 3 seconds behind a typing indicator. On a live phone call, 1.5 seconds of silence after the caller finishes speaking triggers an immediate "Hello, are you still there?", causing caller and bot audio to collide.
Natural human turn-taking gaps sit around 300 to 500 ms. For an AI Voice Agent over cellular networks or SIP telephony, a realistic target for total mouth-to-ear latency (from end of user speech to the first audible bot syllable) is 500 to 800 ms. Once delay passes 1,200 ms, callers begin repeating questions or talking over the response.
Engineering teams choose between two primary architectures: a cascaded streaming pipeline (ASR -> LLM -> TTS) or an end-to-end Speech-to-Speech (S2S) model.
| Engineering dimension | Cascaded Streaming (ASR + LLM + TTS) | End-to-End Speech-to-Speech (S2S) |
|---|
| Typical latency budget | Roughly 650 - 1,100 ms (VAD 200 ms + ASR 200 ms + LLM TTFT 300 ms + TTS 200 ms + network 100 ms) | Roughly 350 - 600 ms by removing intermediate text conversion hops |
| Vietnamese pronunciation control | High: numbers, currency, and codes normalize cleanly before TTS | Moderate: tonal inflection and local proper nouns are harder to constrain |
| Logging and policy auditing | Straightforward: clean per-turn transcripts alongside tool-call traces | Requires parallel transcription if teams need searchable audit logs |
| Component flexibility | Modular: swap Vietnamese ASR or custom voices independently | Coupled to one vendor's unified audio model and pricing tier |
In Anthropic Engineering's "Building effective agents", the core advice is to start with the simplest composable workflow before introducing open-ended agent loops. For booking and hotline intake, a low-latency cascaded pipeline with tight routing and focused tool calls stabilizes much faster. Keeping instructions concise and guiding the LLM toward 12-to-18-word spoken sentences lets a sentence chunker feed TTS as soon as the first clause streams out, cutting perceived wait time.
Handling barge-in interruptions, endpointing, and acoustic echo cancellation
Callers rarely sit quietly through a 20-second policy script. They interrupt mid-sentence to fix a date, skip disclaimers, or change constraints such as "Wait, switch that to the District 3 branch instead." If the bot keeps talking over the caller, trust breaks immediately.
Smooth turn-taking and barge-in handling rely on four coordinated safeguards:
- 01Acoustic Echo Cancellation (AEC) at the audio boundary: In a mobile WebRTC client or SIP media server, outgoing TTS audio can leak back into the caller's microphone. Without solid AEC, Voice Activity Detection (VAD) mistakes the bot's own voice for a human interruption and cuts off its own sentence.
- 02Semantic endpointing over rigid silence timers: A fixed 500 ms silence timer cuts off callers pausing mid-thought while dictating a phone number ("My number is 090... [0.6 s pause] ...812..."). A 1,500 ms timer makes every short reply feel sluggish. Pairing a lightweight local VAD like Silero with compact semantic turn prediction holds the floor during mid-clause pauses while responding quickly when a full request ends.
- 03Immediate state rollback on interruption: Once genuine speech interrupts playback, flush the outbound audio buffer, cancel active LLM and TTS streams via
AbortController, and strip unplayed words from conversation history so the LLM never assumes the caller heard unsaid text. - 04Short spoken fillers for slow tool calls: When querying a calendar or ERP takes 1.2 to 2 seconds, stream a brief acknowledgment ("Sure, let me check tomorrow afternoon's slots") in parallel with the backend call to mask database latency.
Vietnamese accent accuracy, domain terminology, and immediate human escalation
Vietnamese relies on strict tonal distinctions alongside clear phonetic shifts across Northern, Central, and Southern accents. Over narrowband telephony (often 8 kHz on legacy PSTN routes) and street noise, ASR frequently confuses similar tones, digit strings, and code-switched work terms like "Pro plan", "SKU code", or "server maintenance".
Three practices sharply improve recognition reliability:
- Scenario-scoped ASR phrase boosting: Load branch names, service catalogs, technical terms, and SKUs into ASR biasing lists for the active call flow.
- Spoken-form text normalization before TTS: Expand raw tokens like
14:30, 250.000đ, or Q.1 into natural spoken Vietnamese prior to synthesis so TTS never stumbles over punctuation or shorthand. - Explicit read-back for critical slots: Group phone numbers, timestamps, and addresses clearly and confirm verbally before writing booking mutations.
OpenAI's "A practical guide to building agents" emphasizes layered guardrails and explicit human-intervention thresholds. Never trap callers in a clarification loop. Trigger automatic SIP REFER or warm transfer to a human operator whenever any of four conditions hit: two consecutive ASR or slot failures, detectable frustration or a request for staff, high-risk topics like large refund disputes or medical emergencies, or backend tool errors. Push the live transcript and extracted intake fields straight to the operator screen so callers never repeat themselves.
Scope, evidence boundaries, and deployment limitations
This analysis combines ToanKhonTech's Vietnamese voice architecture practices with agent, tool-calling, guardrail, and escalation principles from OpenAI's "A practical guide to building agents" and Anthropic Engineering's "Building effective agents". Latency ranges in the table reflect architectural budgets rather than fixed guarantees across carriers or devices.
In production, actual mouth-to-ear latency and accuracy depend on POP proximity between SIP trunks and inference servers, 4G packet loss, and ambient workplace noise. While native speech-to-speech models keep improving in prosody and speed, cascaded streaming pipelines currently give tighter control over Vietnamese domain terms and audit logs. Teams should shadow-test P95 turn latency and false barge-in rates on real cellular calls before routing full hotline traffic.