Back to insights
Agentic AI·Article

Voice AI Latency: Engineering Sub-300ms Conversations

A practical engineering guide to voice AI latency covering endpointing, WebRTC, streaming audio, realtime models, tool calls, barge-in, telephony, latency budgets, p95 monitoring, and production optimization.

KS
Kamil Shah
Researcher | Writer at Trilops AI
18 min read
Voice AI latency control plane showing audio capture, endpoint detection, network transport, model reasoning, tool calls, and audio playback
Realtime Voice Engineering 14 minute read

Voice AI Latency: Engineering Sub-300ms Conversations

Low-latency voice AI is not created by choosing a fast model and hoping for a natural conversation. It comes from measuring the full audio path, shortening endpoint detection, streaming instead of batching, reducing network hops, controlling tool latency, supporting interruption, and optimizing the slowest percentile rather than one impressive demo.

Measureone clock for every latency stage
Streamaudio and tokens as soon as available
Overlapperform independent work in parallel
Interruptstop speaking when the user starts
ms
Conversation latency path capture · endpoint · transport · model · tool · first audio
Realtime path
User-perceived response Fast enough to feel conversational without sacrificing correctness or control
01Audio capture
02Endpointing
03Network
04Reasoning
05Tool calls
06Audio playback
Track separately end-of-speech first model event first audio full turn p95

The direct answer

To engineer fast voice AI, optimize the time between the user finishing a meaningful turn and hearing the first useful audio from the agent. That path includes endpoint detection, transport, model processing, optional tool calls, speech generation, buffering, and playback.

Trilops has optimized a production voice path to below 300 milliseconds in a specific measured configuration. We do not treat that number as a universal end-to-end guarantee. Network conditions, endpointing, telephony, tools, model choice, geography, and conversation state can all move the result. The useful engineering target is a measured latency budget with p50 and p95 behavior, not one best-case screenshot.

01

One word hides several clocks

What does voice AI latency actually mean?

Teams often report "latency" without defining where the timer starts and stops. That makes comparisons almost meaningless. A voice product can have fast model generation and still feel slow because endpoint detection waits too long. It can also produce a quick first audio chunk while taking much longer to complete a tool-backed answer.

End-of-speech latency

How long until the system decides the user is done?

This is controlled by voice activity detection, semantic turn detection, silence thresholds, audio quality, and conversation behavior.

Time to first model event

How long until useful inference begins returning?

This reflects transport, service load, context size, model choice, and whether the architecture is streaming.

Time to first audio

How long until the user hears the beginning of the reply?

This is one of the most useful conversational metrics because people notice silence between turns immediately.

Full-turn latency

How long until the requested operation is actually complete?

A response may start quickly while a booking, eligibility check, lookup, or record update continues behind it.

Interruption latency

How quickly does the agent stop when the user speaks?

Slow cancellation makes an otherwise fast agent feel robotic because it keeps talking over the caller.

Tail latency

What happens to the slowest real conversations?

p95 and p99 behavior expose network variability, tool spikes, queueing, retries, and outlier payloads hidden by averages.

Metric discipline

Never publish a latency number without defining the start event, stop event, percentile, geography, transport, and whether a tool call was involved.

02

Conversation is turn taking, not benchmark theater

Why does sub-300ms voice latency matter?

Human conversation depends on timing. Large pauses make people repeat themselves, assume the system failed, or begin another thought just as the agent starts speaking. Very aggressive endpointing creates the opposite failure: the system cuts users off before they finish.

The practical goal is therefore not "lowest milliseconds at any cost." It is fast, stable turn taking with correct interruption behavior and enough context to avoid premature responses. The optimal threshold differs by use case. A short appointment confirmation can be more aggressively tuned than a complex clinical intake answer where users pause naturally while recalling information.

Perception

Silence feels longer than compute

Users do not care which service is waiting. They experience one gap between their speech and the agent's reply.

Trust

Fast but wrong is worse

A response that starts instantly but mishears identity, date, medication, or intent creates rework and erodes trust.

Flow

Latency changes speaking behavior

When the agent is slow, callers repeat themselves, add filler, or interrupt, which increases downstream recognition and state complexity.

Economics

Long turns increase call cost

Telephony minutes, realtime model usage, and agent occupancy can all rise when every turn contains avoidable waiting.

i

OpenAI's current Realtime documentation describes realtime sessions as the appropriate path for live audio that needs low latency, and supports realtime audio over WebRTC, WebSocket, and SIP. For browser and mobile clients, its WebRTC guide recommends WebRTC as the more robust client-side connection option.

03

Architecture determines how many serial waits you create

Which voice AI architecture produces the lowest latency?

There are two common patterns: a native speech-to-speech realtime path and a chained speech-to-text, language-model, text-to-speech path. Neither is universally better. The right choice depends on latency, transcript requirements, deterministic processing, model flexibility, cost, compliance, and tool complexity.

Factor Native realtime speech-to-speech Chained STT → LLM → TTS
Latency potentialLower because the model can process and generate audio in one realtime sessionMore serial stages unless aggressively streamed and overlapped
ArchitectureFewer service boundariesSeparate transcription, reasoning, and synthesis components
Component controlLess ability to independently swap each speech stageHigh control over STT, LLM, TTS, and domain-specific processing
Transcript pipelineMay require additional transcript handling depending on product needsTranscript is a first-class intermediate artifact
Deterministic workflowsWorks well when tool policy and output controls are designed around realtime eventsCan be easier when each stage feeds strict application logic
Best fitNatural, low-latency conversation and interruption-sensitive experiencesWorkflows that need specialized STT/TTS, transcript processing, or independent vendor control
Realtime path

Keep the speech loop short

Do not route every conversational turn through unrelated services, analytics jobs, or databases before audio can begin.

Business path

Move heavy work off the critical path

Logging, enrichment, summaries, analytics, and nonblocking writes can often happen asynchronously after the user hears the response.

Tool path

Separate "need before speaking" from "can finish while speaking"

A confirmation phrase can sometimes start while a noncritical follow-up operation completes, but never speculate about a tool result that has not returned.

Fallback path

Design for slow dependencies

When a required API is slow, acknowledge the task, preserve state, and provide a safe wait or escalation path rather than leaving dead air.

04

Milliseconds need owners

How do you build a voice AI latency budget?

A latency budget assigns a target to each stage of the critical path. The numbers below are an illustrative engineering budget, not a guarantee, benchmark, or claim about a specific vendor. The point is to make every wait visible and force tradeoffs before optimization becomes guesswork.

StageIllustrative targetMain leversFailure signal
Endpoint decision60 to 120 ms after meaningful end of turnVAD, semantic turn detection, silence thresholdsuser cutoffs or long dead air
Transport to model20 to 50 msregion, connection reuse, WebRTC/WebSocket pathnetwork p95 spikes
First inference event40 to 90 msmodel, context size, prompt size, service loadslow time to first event
First synthesized audio40 to 80 msnative audio, streaming TTS, chunk sizelarge generation buffer
Playback buffer20 to 40 msjitter buffer, codec, client schedulingsmooth but delayed playout

Important

Do not add these numbers and call the sum a universal target.

Stages overlap in streaming systems, network conditions vary, and tool-backed turns may take much longer. Use this pattern to build a budget from your own traces. Report p50 and p95 separately for no-tool, read-tool, write-tool, browser, mobile, and telephony paths where those differ materially.

1Timestamp audio 2Detect turn end 3Trace model start 4Trace tools 5Trace first audio 6Measure playback
05

The cheapest latency win is often deciding sooner

How do voice activity detection and endpointing affect latency?

Voice activity detection identifies when speech starts and stops. Endpointing decides whether a pause actually means the user finished a turn. These are related but not identical problems.

OpenAI's Realtime API supports voice activity detection for detecting speech start and stop events. Current documentation includes configurable server-side VAD approaches, including semantic turn detection that uses conversational context to estimate whether the user is finished.

Silence threshold

Shorter is faster, until it becomes rude

Aggressive thresholds reduce dead air but can interrupt people who pause naturally between phrases.

Semantic endpointing

Meaning can beat a fixed timer

A contextual turn detector can distinguish "I'm done" from a pause inside an unfinished sentence more intelligently than silence alone.

Noise floor

Bad audio delays decisions

Background noise, echo, clipping, packet loss, and poor microphones can make speech detection less stable.

User type

One threshold does not fit every workflow

Older callers, multilingual users, clinical intake, and complex account numbers may involve longer pauses than simple FAQ conversations.

Interruption

Speech start matters as much as speech stop

The system must detect the user starting again so it can stop playback and preserve the new turn.

Telemetry

Measure false endpoints and delayed endpoints

Latency dashboards should include user cutoffs, immediate corrections, repeated phrases, and endpoint wait time.

!

Do not tune endpointing only against milliseconds. A setting that saves 150 ms but frequently cuts off names, dates, medication doses, or appointment details is a regression.

06

Serial pipelines create serial waiting

How does streaming reduce voice AI response time?

Streaming reduces latency by allowing the next stage to begin before the previous stage is completely finished. Audio can flow continuously. Transcription can produce deltas. A model can start reasoning on partial context. Speech output can begin before the whole response is generated.

CaptureStream audio framesavoid waiting for a complete recording
UnderstandProcess incrementallyuse realtime events and partial context
GenerateEmit early outputdo not buffer the complete answer
PlaybackStart first useful audiocontinue synthesis while speaking
Chunk size

Smaller chunks lower wait but raise overhead

Very large audio or text chunks delay downstream work. Extremely small chunks create event, serialization, and networking overhead. Measure the real tradeoff.

Context

Keep the active prompt lean

Conversation history, retrieved knowledge, and system instructions should contain what the turn needs, not every fact the product has ever seen.

Preambles

Use truthful conversational bridges

For longer tools, the agent can say it is checking availability before the result returns, as long as the preamble does not imply success.

Parallel work

Overlap independent reads

If location hours and appointment availability are independent, they may be fetched concurrently rather than one after another.

07

Distance and transport are part of the product

How do WebRTC, WebSockets, regions, and codecs affect latency?

Network latency is not something the model can optimize away. The audio path may cross a browser, mobile network, telephony carrier, media gateway, application server, model endpoint, tool provider, and back again.

PathStrengthLatency concernTypical use
WebRTCDesigned for realtime media and browser/native communicationICE negotiation, relay paths, jitter, device conditionsWeb and mobile voice applications
WebSocket audioSimple bidirectional application transportApplication-level buffering and TCP head-of-line behaviorServer-side realtime integrations
SIPDirect fit for telephony infrastructureCarrier routing, codecs, transcoding, PSTN pathPhone-based agents and contact centers
Telephony media streamConnects live call audio to custom processingCarrier plus WebSocket plus service hopsProgrammable voice and legacy phone numbers
Region

Put services near the audio path

Keep your realtime gateway, model connection, and critical tools geographically sensible. Avoid unnecessary cross-region round trips.

Connection reuse

Do not handshake on every turn

Persistent realtime sessions remove repeated setup and authentication work from the conversational path.

Codec

Transcoding can add delay

Repeated conversion between telephony and model audio formats adds compute, buffering, and quality loss.

Jitter

Smooth playback has a latency cost

Jitter buffers protect against variable packet arrival, but larger buffers increase playout delay.

i

Twilio Media Streams can send and receive live call audio over WebSockets for near-real-time processing. WebRTC is specifically designed for realtime audio and video transport. The practical choice depends on whether users are calling by phone or speaking through your own web or mobile application.

08

The slowest API often becomes the voice agent

How should tool calls be engineered for low-latency voice agents?

A voice agent that only chats can feel fast. The real challenge appears when it must look up a patient, check availability, verify insurance, search a knowledge base, update a record, or send a message.

01

Classify the dependency

Does the result need to return before the agent can say anything useful?

02

Validate before calling

Do not waste a network trip on missing or invalid identifiers.

03

Parallelize safe reads

Run independent lookups concurrently instead of serially.

04

Bound the wait

Use timeouts, fallbacks, cached safe data, and escalation for slow dependencies.

Read tools

Cache only what can safely be cached

Reference data and static configuration may be good candidates. Patient state or appointment availability may require a fresh check.

Write tools

Keep idempotency off the critical guessing path

Retries must not duplicate bookings, messages, tasks, or records.

Prefetch

Use conversation state to anticipate likely needs

If the user has already selected a location, the system can prepare relevant hours or service metadata before the next turn.

Preambles

Acknowledge, do not fabricate

"Let me check that" can fill a legitimate wait. "You're booked" cannot be spoken until the booking succeeds.

Timeouts

Silence needs an operational limit

Define how long the agent waits before retrying, simplifying the request, or escalating.

Metrics

Track each dependency separately

One slow third-party API should not hide inside a single "agent latency" chart.

09

Fast speech is not conversational if it cannot stop

Why is barge-in latency as important as response latency?

Barge-in means the user can interrupt the agent naturally. The system detects new speech, stops or truncates the current audio response, preserves the correct conversation state, and processes the new turn.

Interruption trace Agent is reading appointment options
User begins speaking
User audio

"Actually, I need the afternoon, not the morning."

Realtime system behavior
Speech startDetected
PlaybackCancelled
StateMorning options discarded
Process new constraint Recheck availability Continue conversation
Detection

Measure time from user speech start to interruption event.

Cancellation

Stop queued or buffered audio quickly enough that the agent does not talk over the user.

State

Do not preserve words the user never heard as if they were accepted conversational context.

Tools

Do not cancel an already committed external write merely because playback was interrupted unless the business workflow allows it.

Echo

Ensure the agent's own playback does not falsely trigger user speech detection.

Testing

Include interruptions at the start, middle, and end of responses in every voice regression suite.

10

Phone calls add infrastructure you do not control

Why are telephony voice agents usually harder to optimize than browser voice?

Browser and native applications can often connect directly to a realtime media service using WebRTC. A phone call may add PSTN routing, carrier infrastructure, codec conversion, telephony media streaming, and your application gateway before the model receives audio.

Carrier routeCall media may travel farther than the user expects

Measure by caller region and carrier where enough volume exists.

CodecTelephone audio has different bandwidth and encoding

Recognition and endpoint behavior should be tested on real call audio, not laptop microphones only.

TranscodingEvery conversion can add buffering and quality loss

Minimize unnecessary encode-decode cycles across the path.

Media gatewayThe gateway becomes part of your p95

Trace receive, forward, model, return, and playback timestamps separately.

Call controlTransfers and DTMF create extra states

Test handoff, hold, disconnect, voicemail, and caller interruption behavior.

RealityTest on real networks

Office Wi-Fi and synthetic audio do not reproduce mobile calls, packet loss, noisy rooms, or Bluetooth headsets.

11

Optimization starts with one trace per turn

What should a voice AI latency dashboard measure?

Every conversational turn should produce traceable timing events. The events should be safe for the data involved, but detailed enough to explain why one turn took 240 ms and another took 1.8 seconds.

Audio

Speech timing

speech started, meaningful speech ended, VAD decision, interruption detected, playback stopped.

Model

Inference timing

request/event sent, first model event, first output token, first audio delta, response complete.

Tools

Dependency timing

tool selected, call started, first byte, completed, timed out, retried, rejected.

Playback

User-perceived output

first audio queued, first audio rendered, buffer depth, cancellation, underrun, completion.

Context

Workload dimensions

transport, region, caller type, tool category, context size, audio duration, model, codec.

Outcome

Quality with speed

task success, correction, repeated user phrase, escalation, abandonment, and user interruption.

Illustrative turn tracevoice_turn_1842
No-tool turn
T+0Meaningful user speech ends T+82msTurn endpoint confirmed T+113msRealtime service receives committed turn T+181msFirst response event arrives T+247msFirst audio is ready for playback T+273msClient renders first audio

Illustrative trace only. It demonstrates instrumentation and should not be presented as a measured Trilops production sample unless replaced with a verified trace from your telemetry.

p50normal experience p95slow experience cutoffsendpoint quality barge-ininterruption quality successworkflow outcome
12

Optimize in descending order of measured pain

What is the fastest way to reduce voice AI latency?

Step 01

Instrument the turn

Add one shared trace ID and timestamps across capture, endpointing, model, tools, and playback before changing architecture.

Step 02

Separate no-tool and tool turns

Do not let slow external APIs distort the baseline conversational path.

Step 03

Tune endpointing with real audio

Reduce unnecessary silence while tracking cutoffs, repeat phrases, and correction rate.

Step 04

Move to a realtime transport

Use persistent low-latency media connections instead of record-upload-wait-response cycles for live conversation.

Step 05

Stream every serial stage

Process audio, transcription, reasoning, and speech output incrementally where the architecture supports it.

Step 06

Shorten active context

Remove irrelevant history, precompute stable instructions, and retrieve only what the current turn needs.

Step 07

Parallelize independent tools

Run safe reads concurrently and move noncritical writes, analytics, and enrichment outside the first-audio path.

Step 08

Place infrastructure intelligently

Reduce cross-region hops and unnecessary media gateways between caller, application, model, and tools.

Step 09

Optimize p95, then protect quality

Fix the slowest common path without increasing false endpoints, hallucinations, unauthorized actions, or user corrections.

Voice release scorecard

Latency cannot pass while conversation quality fails.

Release gates
First audiop50 and p95 within targetsplit by architecture and tool path
EndpointingCutoff and delayed-end rates acceptablemeasured on real speaking patterns
Barge-inPlayback cancellation feels immediatestate remains consistent
Tool pathSlow dependencies have fallback behaviorno false confirmation before success
QualityFaster settings do not worsen task outcomesidentity · extraction · intent · completion
OperationsTrace, alert, rollback, and support are livemodel · prompt · region · transport · release
13

What 16+ production agents taught us

What changed when we optimized voice agents in production?

01

The model was not always the slowest component

Once model latency dropped, endpointing, network distance, tool APIs, audio buffering, and application logic became visible. Optimizing only inference would have missed the actual user delay.

02

Latency had to be measured per path, not per product

A no-tool FAQ turn, appointment lookup, write operation, transfer, and multilingual turn have different critical paths. Combining them into one average hid the engineering work.

03

Sub-300ms is meaningful only with a defined measurement boundary

We use the below-300ms proof point only for an optimized measured voice path, not as a blanket promise for every full conversation or external integration.

04

Barge-in quality changed the perception of speed

An agent that starts quickly but keeps talking after the caller interrupts still feels slow. Fast cancellation and correct conversational state are part of latency engineering.

05

External APIs needed conversational failure states

When a schedule or record service slowed down, leaving silence was the worst interface. A truthful preamble, timeout, retry, or escalation preserved trust without inventing a result.

06

The fastest architecture was not always the safest architecture

Some healthcare steps still need validation or human approval. We optimize around those controls rather than deleting them to win a latency benchmark.

Voice latency is a systems problem. The user hears the sum of every decision your architecture delayed.

Trilops production engineering principle
14

Frequently asked questions

Voice AI latency: FAQ

What is good latency for a voice AI agent?+

There is no universal number because the measurement boundary and workflow matter. For conversational quality, measure from meaningful end of user speech to first audible agent response, then track p50 and p95. Also measure cutoffs, barge-in, tool completion, and task success.

Can a voice agent respond in under 300 milliseconds?+

Specific optimized paths can reach below 300 milliseconds under defined conditions. That should not be interpreted as a guaranteed full-turn result across every network, telephony route, tool call, model, or geography. Publish the measurement boundary with the number.

Is speech-to-speech always faster than STT plus LLM plus TTS?+

Native realtime speech-to-speech removes some serial boundaries and can offer excellent latency. A carefully streamed chained architecture can still be appropriate when you need specialized transcription, synthesis, deterministic transcript processing, or independent vendor control.

What usually causes the biggest delay in a voice agent?+

It depends on the path. Common causes include slow endpoint detection, network distance, model response time, external tools, large context, audio buffering, telephony routing, and retries. Instrument every stage before optimizing.

How do tool calls affect voice AI latency?+

A required tool can dominate the turn if it takes hundreds of milliseconds or seconds. Parallelize independent reads, prefetch safe data, use bounded timeouts, and speak truthful preambles where appropriate. Never announce a tool result before it succeeds.

Why does my voice agent feel slow even when model latency is low?+

The model may be only one part of the delay. Endpointing can wait too long, the client may buffer audio, the network can add round trips, or the agent may fail to stop quickly during interruption. User-perceived latency must be measured end to end.

Should we optimize p50 or p95 first?+

Establish a healthy p50 baseline, then focus heavily on p95 because slow outliers damage trust and often reveal architectural bottlenecks. Keep quality metrics alongside latency so optimization does not increase cutoffs, wrong actions, or corrections.

Authoritative references

Latency depends on architecture, network, model, region, transport, endpointing, tools, audio format, traffic, and measurement boundaries. Illustrative budgets and traces in this article are engineering examples, not universal performance guarantees.

Realtime voice is a systems discipline

Do not optimize the demo. Optimize the conversation path.

Trilops builds production voice agents with streaming audio, measurable latency budgets, controlled tools, interruption handling, evaluation, observability, and healthcare-ready workflow safeguards.

#voice AI latency#realtime voice agent#low latency voice AI#WebRTC voice AI#voice activity detection#voice agent engineering#sub-300ms voice#agentic AI
Share
TrilopsLet's start a project together

Built for
what can't fail.

hello@trilops.ai

Prefer to talk? We typically reply within one business day and can hop on a call to scope your project — no obligation.