In this article
Measure generation, buffering and DAC timing separately; generated audio duration does not establish playback latency.
The diagnostic situation
A speech generator produces chunks faster than their audio duration, but the listener still experiences a delayed response. The service reports only generation time divided by generated duration and calls that end-to-end latency. Client buffering, callback scheduling and output-device timing are missing. An apparently favorable generation ratio can therefore coexist with a poor delivery experience.
Why the observation changes meaning
Parler-TTS streaming separates chunk generation from consumption. Sounddevice exposes callback and DAC-output timestamps in the associated stream time base, plus underflow or overflow flags. Those timestamps describe an output boundary, not proof of human listening. Audio duration derived from sample count and rate is another quantity, distinct from elapsed generation time and the scheduled playback position.
Define the instrumentation contract
Define timestamps for request submission, chunk availability, buffer admission and the chosen output boundary. Preserve sample rate, channel/frame interpretation and chunk sequence. Establish clock relationships before subtracting generator timestamps from client stream times, especially across hosts. Keep generated duration, observed buffering delay and playback timing separately named so a dashboard cannot treat them as interchangeable measures of response speed.
A bounded verification procedure
Use synthetic audio chunks with known frame counts and a bounded playback sink. Record generation-ready events independently of playback callbacks. Introduce controlled consumer delay and compare the changed delivery observations while keeping generated audio constant. Include an underflow case separately. The fixture should show where delay becomes visible without claiming an exact human perception timestamp or requiring private speech content.
Evidence required for acceptance
Acceptance evidence includes chunk inventory, frame counts, sample rate, clock definitions, callback timing and status flags. Verify that the output timeline remains associated with the intended chunk sequence. Report gaps and clock uncertainty instead of clamping negative cross-domain differences to zero. A stable generation ratio alongside increased buffering is useful evidence that model execution and delivery need separate investigation.
Failure cases and limits
An output callback must meet real-time constraints, so detailed logging inside it can itself create the problem. Use an appropriate bounded observation path and measure its effect independently. This protocol validates timing boundaries for the tested audio pipeline; it does not establish speaker acoustics, user hearing, universal playback latency or the quality of the generated speech.
Primary references and related reading
Measure generation, buffering and DAC timing separately; generated audio duration does not establish playback latency. Parler-TTS inference and streaming guide; python-sounddevice stream timing and stopping.
The proposed investigation of speech playback clock delivery lag is not an executed deployment benchmark. Related reading: Neural audio codecs turn waveforms into discrete generation targets; Monotonic clocks for inference API latency measurements.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.