AnyLearn
All lessons
AIadvanced

End to End: What the Cascade Throws Away

Speech in, text, model, text, speech out is the standard architecture and it discards everything not in the words: emphasis, emotion, hesitation, overlap. End-to-end models keep it by never routing through text, and pay with a token rate roughly 185 times higher and far less training data. This lesson covers the trade, and why interleaving is the pragmatic answer.

Updated · AI-authored, review-gated · how lessons are made

Not signed in: your progress and quiz score won't be saved.
Progress1 / 9

The lossy step in the middle

The standard voice system is a cascade: recognition turns speech into text, a language model produces a text reply, synthesis turns that into speech. The catalogue's path on voice agents covers building one, and this lesson is about what the architecture costs.

The cost is concentrated in one place. Recognition outputs text, and text is a very narrow channel compared with what arrived.

What is lost is everything the words do not carry. Which syllable was stressed, and therefore what the sentence actually meant. Whether the speaker was hesitant, irritated, amused, or reading aloud. How fast they spoke and where they paused. Whether two people were talking at once. Non-lexical sounds that carry real information: a sigh, an intake of breath, a laugh, a hesitation noise.

All of it reaches the recogniser and none of it survives into the transcript.

The language model then reasons about a stripped representation, and synthesis has to invent delivery from scratch, which is why the previous lesson ended where it did. Information discarded at step one cannot be recovered at step three.

Full lesson text

All 9 steps on one page, for reading, reference, and search.

Show

1. The lossy step in the middle

The standard voice system is a cascade: recognition turns speech into text, a language model produces a text reply, synthesis turns that into speech. The catalogue's path on voice agents covers building one, and this lesson is about what the architecture costs.

The cost is concentrated in one place. Recognition outputs text, and text is a very narrow channel compared with what arrived.

What is lost is everything the words do not carry. Which syllable was stressed, and therefore what the sentence actually meant. Whether the speaker was hesitant, irritated, amused, or reading aloud. How fast they spoke and where they paused. Whether two people were talking at once. Non-lexical sounds that carry real information: a sigh, an intake of breath, a laugh, a hesitation noise.

All of it reaches the recogniser and none of it survives into the transcript.

The language model then reasons about a stripped representation, and synthesis has to invent delivery from scratch, which is why the previous lesson ended where it did. Information discarded at step one cannot be recovered at step three.

2. Cases where the words are not the message

It is worth making the loss concrete, because in ordinary use the cascade works well and the failures are specific.

Sarcasm and irony invert meaning through delivery alone. The transcript of a sarcastic remark is its literal opposite, and there is nothing in the text to signal it.

Emphasis changes reference. The same six words with the stress on different syllables can pick out different things, ask different questions, or presuppose different facts. Transcription flattens all of them into one string.

Uncertainty is usually vocal. A person who says yes with a rising, hesitant contour has communicated doubt, and the transcript says yes.

Emotional state matters when the response should differ. A distressed caller and a calm one asking the same question want different handling, and the cascade cannot tell them apart.

And overlap is discarded entirely. Two people speaking at once is a normal conversational event, and a transcript is a sequence.

None of these are edge cases in human conversation. They are how conversation works, which is why the cascade feels more limited in dialogue than in dictation.

3. The other cost: latency stacks

The second problem with a cascade is structural rather than informational, and it shows up as the thing users complain about.

Three models run in sequence, and each contributes delay. Recognition must decide the speaker has finished, which requires waiting through a pause long enough to be confident it is not a mid-sentence hesitation. The language model must produce enough text to start speaking. Synthesis must generate audio.

Those add. And the endpointing decision is the awkward one, because it is a direct trade: wait longer and you interrupt people less often but respond more slowly.

Streaming helps a great deal, and the voice agents path covers how: begin transcribing before the utterance ends, begin generating before transcription completes, begin synthesising before generation completes. Done well the components overlap rather than queue.

What streaming cannot remove is the endpointing wait, because knowing whether someone has finished speaking requires evidence that only arrives with time. A human uses prosody to anticipate the end of a turn, and prosody is exactly what the cascade discarded at the first step.

So the informational loss and the latency problem have the same origin.

4. The obvious alternative, and why it is hard

If routing through text is what causes both problems, the fix is to not route through text. One model consumes audio tokens and produces audio tokens, and nothing is ever transcribed.

The appeal is clear. Nothing is discarded, because the tokens carry everything. There is no cascade to accumulate latency. And the model can respond to how something was said, because that reached it.

The difficulty is the arithmetic from the first lesson. Audio at eight codebooks is roughly 600 tokens per second against about 3.2 for text, so a conversation is roughly 185 times longer as audio than as a transcript. A ten-minute exchange is a couple of thousand text tokens and several hundred thousand audio tokens.

That multiplies training cost, inference cost, and the context length required to remember what was said five minutes ago.

The second difficulty is data. The internet contains an enormous quantity of text and far less transcribed conversational speech, and a model learning language purely from audio is learning from a tiny fraction of the material a text model gets. Everything a text model knows about the world came from reading, and speech data does not contain most of it.

5. The pragmatic answer: keep both

The design that resolves this is to use both representations rather than choosing, and it takes several forms.

The common one starts from a strong text language model and attaches audio. An audio encoder produces representations the model consumes alongside text tokens, and an audio decoder lets it emit speech. The model keeps everything it learned from text and gains an audio channel, rather than learning language from audio.

Interleaving is the training technique that makes this work. Sequences mix text tokens and audio tokens, so the model learns their correspondence and can move between them. It can reason internally in text, which is cheap and where its competence lies, while receiving and producing audio.

A reduced token rate is the other half. If a tokenizer emits fewer tokens per second, the whole problem shrinks proportionally, which is why low-frame-rate and semantically-organised tokenizers have received so much attention.

The honest summary is that end-to-end speech models today are text models with audio attached rather than models that learned language from sound. That is a compromise, and it is the one that works.

6. Three architectures, three costs

Laying the options side by side shows that each solves one problem and creates another.

The cascade routes audio through text and back. Everything paralinguistic is discarded at the first arrow, latency accumulates across three models, and in exchange every component is independently swappable, debuggable and cheap. This is what almost everything in production does.

The pure end-to-end model keeps audio throughout. Nothing is discarded and latency is one model deep, and it pays with the token rate, the data scarcity, and the loss of the text model's accumulated knowledge.

The interleaved design keeps a text backbone and adds audio at both ends. Paralinguistic information reaches the model, the text model's knowledge is retained, and reasoning can happen cheaply in text. What it costs is complexity, and the fact that the model is doing two things at once.

The diagram is worth reading as a set of trades rather than a progression. The cascade is not obsolete. For a system that transcribes dictation or answers factual questions, discarding prosody costs nothing and the cascade is simpler, cheaper and easier to fix.

flowchart TD
A["Speech in"] --> B["Cascade: recognise to text"]
B --> C["Text model, then synthesise"]
C --> D["Paralinguistics lost, latency stacks, components swappable"]
A --> E["End to end: audio tokens throughout"]
E --> F["Nothing lost, one model deep"]
F --> G["Costs: 185x token rate, scarce data, no text knowledge"]
A --> H["Interleaved: text backbone plus audio at both ends"]
H --> I["Keeps text knowledge, reasons in text, hears prosody"]

7. Full duplex: listening while speaking

One capability is genuinely out of reach for a cascade and is the clearest argument for a different architecture.

Human conversation is not strictly turn-taking. People overlap constantly: back-channel sounds while the other person is still talking, starting a reply before the speaker finishes, interrupting and being interrupted, both parties speaking and one yielding.

A cascade is structurally half duplex. It listens, decides the turn ended, thinks, then speaks. While speaking it is not really listening, and interruption handling is bolted on: detect that the user started talking, stop playback, discard the rest, go back to listening.

That works and it is a workaround. The system was never simultaneously producing and perceiving.

Full duplex means modelling both streams continuously, so the model is always receiving audio and always deciding whether to emit, including deciding to stop mid-word because the other party started talking, or to make a brief acknowledging sound without taking the turn.

That requires an architecture where listening and speaking are not separate phases, which a pipeline of three sequential components cannot provide regardless of how well it is engineered.

8. Evaluating a system that talks

The metrics from the earlier lessons measure components and miss most of what makes a voice system good or bad.

Word error rate scores the recogniser. Mean opinion score and speaker similarity score the synthesiser. A system can be excellent on all three and unpleasant to talk to.

The things that decide that are conversational. Time to first audio, which is what users experience as responsiveness, measured end to end rather than per component. Interruption handling: how quickly the system stops, and whether it correctly resumes or abandons what it was saying. Turn-taking errors in both directions, meaning talking over the user and leaving awkward silences. And whether the response is appropriate to how something was said, not only to what was said.

None of these are captured by component metrics, and all of them are what a user notices in the first minute.

The general shape is the one this catalogue keeps arriving at. Component metrics are regression tests, useful for catching things that broke. Whether the system is good is a different measurement, made end to end, on the dimension the user actually experiences.

9. What the path establishes

Five things, in the order they became useful.

Audio has to be discretised before it can be modelled, and neural codecs do it with residual vector quantization: several modest codebooks each refining the last, because one codebook large enough would be untrainable.

The token rate that results governs everything. Roughly 600 tokens per second at good quality, against about 3.2 for text, is why speech models make the compromises they do.

Recognition is the easy direction, because it consumes audio and produces text. Its three architectures differ on how much audio is needed before an output, which is the same as asking whether it can stream.

Synthesis became tractable when audio turned into tokens, since generating speech then became next-token prediction. That is what made zero-shot cloning from three seconds possible, and the enabling fact is that the model already knew the space of voices.

And the cascade's cost is informational as well as temporal. Text discards everything the words do not carry, which is most of what makes conversation work, and the architectures addressing it are trading that recovery against a token rate two orders of magnitude higher.

Check your understanding

The lesson ends with a 5-question quiz. Take it in the player above to see your score.

  1. What does the cascade architecture discard, and where?
    • Speaker identity, at the synthesis step
    • Everything paralinguistic, at the recognition step, since a transcript carries only the words
    • Timing information, at the language model step
    • Nothing, provided the recogniser has a low word error rate
  2. Why can streaming not remove the endpointing delay in a cascade?
    • Because the language model cannot begin before transcription completes
    • Because synthesis requires the full reply before it can start
    • Because knowing whether a speaker has finished needs evidence that only arrives with time, and the prosody a human would use to anticipate it was discarded at recognition
    • Because network round trips dominate the latency budget
  3. What are the two main obstacles to a pure end-to-end speech model?
    • The token rate is roughly 185 times the text equivalent, and conversational speech data is far scarcer than text
    • Codecs cannot be run in streaming mode, and speakers vary too much
    • Attention does not work on audio, and GPUs lack the memory
    • Transcription is required for evaluation, and synthesis is too slow
  4. What best describes how current end-to-end speech models are actually built?
    • Models trained from scratch on audio alone, with no text involved
    • Cascades with a shared encoder between components
    • Text language models with audio attached at both ends, trained on interleaved text and audio tokens
    • Codec models with the language model removed entirely
  5. Why is full duplex conversation out of reach for a cascade?
    • Because recognisers cannot handle overlapping speakers
    • Because synthesis cannot be interrupted mid-utterance
    • Because the token rate becomes too high when both streams run
    • Because it is structurally half duplex: it listens, decides the turn ended, thinks, then speaks, and was never simultaneously producing and perceiving

Related lessons

AI
advanced

Synthesis: Why Three Seconds Is Enough to Clone a Voice

Once audio is a sequence of tokens, generating speech becomes the same shape of problem as generating text, and the whole language modelling toolkit transfers. That reframing produced zero-shot voice cloning from about three seconds of audio. This lesson covers the codec language model approach, why so little reference suffices, the flow-matching alternative, and what the capability implies.

9 steps·~14 min
Math
intermediate

Sampling and Aliasing: The Rule You Cannot Break

Turning a continuous signal into numbers is safe only above a specific rate, and below it the damage is silent and permanent. This lesson derives the Nyquist limit, shows exactly where a too-high frequency reappears, and explains why the fix has to be analogue and has to happen before the converter.

10 steps·~15 min
Programming
beginner

Networking and the Bill: Where the Surprises Live

Two things reliably surprise teams new to AWS: the network they must build before anything can talk, and an invoice driven by charges nobody chose deliberately. The two are connected, because moving data is where much of the cost hides. This lesson covers the virtual network primitives, the traffic charges that follow from them, and how to read a bill.

7 steps·~11 min
Programming
beginner

Storage and Data: Three Shapes, and Choosing a Database

Cloud storage looks like a long product list and is really three physical shapes, object, block and file, each with an access pattern it is built for and one it is bad at. This lesson covers those three, the difference between durability and availability that people conflate, what eleven nines actually means at scale, and how to choose a database by access pattern.

7 steps·~11 min