Break the journey into stages
A spoken reply may wait for speech recognition, language generation, sentence segmentation, TTS inference, transport, decoding and the device’s playback buffer. Measure these stages separately and keep an end-to-end measurement.
A claim such as “150ms latency” is incomplete without the start and end events. Is it model inference, the first audio chunk or audible speech after a user action? A warm server test may omit browser startup and device scheduling.
Chunking is a quality trade-off
Small chunks can start earlier but may damage pacing, split numbers or create gaps. Waiting for a whole answer improves context but increases delay. A useful segmentation strategy looks for speakable units and handles punctuation, abbreviations and language-specific boundaries.
Keep enough buffered audio to absorb ordinary network variation without making cancellation feel slow. Measure underruns and unnatural pauses with actual listening, not just a successful network request.
Test the interruption path
When a user interrupts, stop queued audio for the old answer and cancel unnecessary work where supported. Late chunks must not enter the new response. Give each generation and playback stream an identity so retries and navigation cannot overlap them.
Test repeated play presses, a device switching audio routes, backgrounding, connectivity loss and a long answer followed by a short one. The text should remain usable if audio fails.
Report reproducible results
Name the browser or device, network conditions, voice, model version, script lengths and whether the session was cold or warm. Report a distribution and listening results, not only the best sample. Distinguish physical-device evidence from a simulator.
For a client project, set a target on the actual journey and specify what the user sees when it cannot be met. The best latency improvement may be earlier useful text, a shorter reply or a clearer progress state rather than a more expensive model.
