Speech-to-Speech and Expressive Voice
Language AI HandbookAll chapters A caller pauses to check a date. If the assistant treats that pause as the end of the turn, it starts answering before hearing the date. If it waits too long after the caller finishes, the gap drags.
This chapter follows a fictional voice request from input audio to playback, then measures which part of the loop caused the delay.
The distinction that organizes everything here is between content, prosody, speaker representation, and streaming behavior. Content is what was said (the words). Prosody is how it was said (pitch, rhythm, stress, timing, loudness, pauses). Speaker representation is who it sounds like (timbre, identity, accent). Streaming behavior is when it was said relative to the listener's clock (latency, overlap, barge-in, turn-taking). A good speech-to-speech agent has to control all four and keep them conceptually separate, because each has its own representation, failure modes, evaluation, and safety surface. Keeping them separate is not just a matter of clean bookkeeping; it is what lets you debug a system that "sounds wrong" by asking a precise question: is the content wrong, is the prosody wrong, is the identity wrong, or is the timing wrong? Those four questions give you separate places to look in the pipeline.
We will build the loop in layers. We start with the architecture choices (cascaded, end-to-end, hybrid), then pull apart the four control axes. We cover the neural vocoders and discrete audio tokens that make generation tractable, then the latency budget that makes the system feel conversational. Then conversation dynamics (barge-in, backchannels, turn detection), the expressive control surface (prosody, emotion, style), and speaker identity as a product constraint rather than a free input. Safety in voice is structurally different from safety in text, and we treat it as a first-class concern rather than an appendix. Throughout, we keep synthetic speakers and waveform features as our working material, and we do not clone any real voice. This is a deliberate methodological choice: every audio signal in this chapter is generated from a sine wave, a chirp, or noise, so you can reproduce every number and plot without downloading a speech corpus, and so the chapter models the right habits for working with voice before you ever touch a real person's recording.
By the end you should be able to reason about a real speech-to-speech deployment: which parts of the pipeline you can let be end-to-end, which parts you must keep inspectable, how to measure latency in a way that matches what users hear, where the expressivity comes from, and how to avoid building a voice-cloning abuse tool by accident.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!