Free How much of your firm runs on you? Take the 2-minute Key Man Score.
Component guides

Speech synthesis for voice agents

Evaluate pronunciation, audible latency, playback continuity and interruption recovery on your actual audio path.

Mahimai Raja J Updated September 2026
An audio engineer adjusts a synthesis console beside a telephone and loudspeaker.

A voice can sound natural and still read an order code incorrectly. It can also synthesize quickly while the caller waits behind an output buffer.

Evaluate what the caller hears: the words, their delivery, the delay before them, and whether they stop when needed. Naturalness belongs in that evaluation alongside correctness and timing.

Playback Timing

Keep three milestones separate: the synthesis request, the first usable audio received, and the first audible sample at the receiver. Network delivery, decoding and buffering sit between generation and playback.

A provider’s first-byte measurement may not use the same boundary as your own first-audio measurement. Record the definitions before comparing numbers. Measure distributions under expected concurrency, including cold starts and longer requests.

Pronunciation Control

Prepare examples from the actual workflow: dates, currencies, abbreviations, names and identifiers. Specify the intended reading before listening. 007 might be an identifier to spell digit by digit, while 7 might be a quantity.

SSML pronunciation controls include phonemes and custom lexicons in supported Azure voices. Control support varies by engine and voice; verify the exact combination you deploy.

Input typeEvaluation question
IdentifierCan a listener recover every character, including leading zeros?
AmountAre the value, currency and decimal part unambiguous?
DateIs the spoken date consistent with the application’s locale?
Domain termDoes the agreed pronunciation survive different sentences?

Confirm difficult strings through a separate channel when the workflow supports it. Clear pronunciation reduces ambiguity; it does not prove that the caller wrote the value correctly.

Streaming Continuity

A fast start is insufficient if playback repeatedly runs dry. Track buffer underruns, inter-chunk gaps and synthesis throughput across a full answer.

Text segmentation creates another tradeoff: sending an early fragment reduces waiting, but the synthesizer may lack context for phrasing or pronunciation. Compare complete sentences with smaller segments on the same material. Avoid universal chunk-size rules.

Prepared text Speech synthesis Output queue clear on interrupt Receiver playback
Prepared text Speech synthesis Output queue clear on interrupt Receiver playback
Measure generation and receiver playback separately. The output queue is also where stale audio must be cleared.

Interruption Handling

Audio does not have to finish an entire network chunk before it can stop. The application can cancel generation and discard queued samples. The effective stopping delay depends on the detection, transport and playback path.

LiveKit’s speech controls include interruption and playout handling. Verify what reaches the receiver, especially if audio has already been buffered elsewhere. Cancelling the model request alone is not enough.

Voice Consistency

Listen across short replies, long replies, reconnects and different sentence boundaries. Track pronunciation, loudness, speaking rate and speaker identity, as well as subjective preference.

Use the actual telephone or browser path. A studio recording is useful for inspecting synthesis; it does not reproduce the caller’s codec and device. The phone-channel guide explains what a controlled approximation can and cannot show.

Evaluation Plan

CheckEvidence
Critical stringsListener transcriptions compared with intended readings
Response onsetRequest, first-audio and receiver-playback timestamps
ContinuityUnderruns and gaps across full replies
InterruptionsCaller onset to stopped playback; stale audio after cancellation
Voice qualityBlind listening notes across representative conditions

Keep the input text, preprocessing, voice configuration and resulting audio together. For deeper implementation work, continue with TTS from Scratch. Test turn detection separately so a slow interruption decision is not misdiagnosed as a slow voice.

Run these components on your own servers, end to end.

See the self-hosted offer

Discussion

Questions, corrections and war stories welcome. Sign in with GitHub to comment.

Free guide

Be The 10x Entrepreneur

Get the firm out of your head.

  • 8 chapters
  • 7 worksheets
  • 30 day plan