Speech AI Latency Budgets: Find the Bottleneck Before Tuning
A speech AI latency budget sets a target for a user-visible interval, then tracks how capture, transport, recognition, endpointing, and response stages use that time. First partial text, final transcript, and first spoken response are different metrics; timestamp the real flow and measure each bottleneck separately.
A speech AI latency budget sets a target for a user-visible interval and tracks how each stage uses that time. “Fast recognition” alone is not enough: the first partial text, finalized transcript, and first audible response happen at different times. A study of on-device ASR found that compute load and real-time factor did not always predict perceived delay; token emission and endpointing mattered, within that study’s models and evaluation conditions. Shangguan et al., 2021
Choose the delay you want to improve
| Metric | Start → end | What it can reveal |
|---|---|---|
| First partial result | User starts speaking → first transcript token | Capture buffering, preprocessing, waiting for first model output |
| Final transcript | Actual speech end → transcript finalized | Decoder catch-up, endpointing wait |
| First spoken response | Actual speech end → first response audio is heard | Endpointing, server/tool work, TTS and playback buffer |
Keep these separate. Live captions may prioritize first partial output and revision stability; a voice assistant may prioritize finalization and the first audible response. Expected timing can also depend on task complexity. Google Duplex described one system that used faster, lower-confidence processing when low latency was important and sometimes allowed more time for complex requests; these are system-specific examples, not universal targets. Google Duplex
Break the timeline into stages
For each real request, record the times when audio frames reach the model; when a network request is sent and received, if applicable; when the first token and final transcript appear; when VAD/endpointing closes the input; when interpretation or a tool call finishes; and when TTS audio is ready and playback begins. Use a monotonic clock for durations. If client and server timestamps use different clocks, record synchronization uncertainty.
Calculate stage durations from the same request trace. Some stages overlap, so end-to-end latency is not always the sum of every stage’s duration. Avoid double-counting parallel work: allocate time along the critical path that determines when the user gets the result.
Set a budget and find the bottleneck
**Define the measurement boundary**, such as actual speech end to first audible response. Use the same event definitions in code and dashboards.
**Separate task types:** short commands, long dictation, noisy speech, and external tool calls can have different bottlenecks and acceptable trade-offs.
**Set a target and percentiles.** A mean can hide slow cases; track a distribution such as median and p90. Choose targets for the product and task rather than assuming one millisecond limit fits every speech app.
**Record a baseline** over repeated, representative audio, devices, networks, and model versions. Keep end-to-end and stage p50/p90, recognition quality (such as WER), and clipping errors.
**Improve one large critical-path stage at a time.** If transport dominates, inspect networking and packetization; if endpointing dominates, balance early closure against cutoffs; if decoder catch-up dominates, inspect emission and backlog. Repeat under the same conditions.
If final results are slow while the model already processes audio faster than real time, shrinking the model may not improve perceived response. In one on-device ASR study, token emission and endpointing had a strong effect, while FLOPS and real-time factor did not consistently track user-perceived latency. Treat this as a reason to measure your own bottleneck, not as a prediction for another product. Shangguan et al., 2021
Check changes in production
Compare latency distributions across versions, devices, languages, and network conditions. Watch p90 alongside recognition accuracy and cutoffs. A faster recognizer that drops word endings or triggers the wrong tool has not met the goal. Preserve separate metrics for first partial output, final transcript, and first response, and confirm an improvement in one stage did not harm another.
References
[Shangguan et al., Dissecting User-Perceived Latency of On-Device E2E Speech Recognition (2021)](https://arxiv.org/abs/2104.02207)
[Google Research, Google Duplex: An AI System for Accomplishing Real-World Tasks Over the Phone (2018)](https://research.google/blog/google-duplex-an-ai-system-for-accomplishing-real-world-tasks-over-the-phone/)