Files
ai-agent-book/slides/lesson-36.md
T
liqiang b119135836
Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
ai-agent-book 精选快照(<2MB 代码与文档,来自 github.com/bojieli/ai-agent-book)
2026-08-20 13:12:50 +00:00

8.1 KiB

theme, title, info, author, transition, mdc, lineNumbers, monaco, aspectRatio, canvasWidth, layout, class
theme title info author transition mdc lineNumbers monaco aspectRatio canvasWidth layout class
seriph Lesson 36 — When Should Voice Stop Taking Turns? English video course for AI Agents in Depth Bojie Li slide-left true false false 16/9 980 cover cover
Expand · Chapter 9 · Multimodal Interaction

When Should Voice Stop Taking Turns?

Omni, full-duplex interaction, fast-slow thinking, and controllable speech

Lesson 36 of 42 · 19 minutes · End-to-End Omnimodal Models; Full-Duplex Models; Thinking Architectures; Human-like Speech

layout: center class: text-center

The central question
How can an Agent listen, speak, interrupt, and think deeply without making conversation stall?

Why this problem matters

Omni

Preserve prosody and emotion across one end-to-end model.

Full duplex

Choose listen/speak/stop actions many times per second.

Fast + slow

Keep interaction alive while a strategist works in the background.


Three ideas to keep in view

Turn-based Omni

End-to-end audio but still waits for a turn boundary

Interactive model

Concurrent input/output with barge-in and backchannels

Latent bridge

Exchange richer internal state than plain text


The book's visual model

Fast and slow thinking architecture alternatives
Fast and slow thinking architecture alternatives

Modular cascade vs. End-to-end/full duplex

Modular cascade

  • Easy to debug
  • Providers interchangeable
  • Prosody lost through text

End-to-end/full duplex

  • Lower boundary latency
  • Preserves acoustic cues
  • Harder to observe and control
The newer architecture buys interaction quality with reduced modularity.

Fast interaction can delegate

intent = realtime_model.listen(audio_frame)
if intent.needs_deep_work:
    job = strategist.start(intent.context)
realtime_model.respond(interaction_state)
if job.ready: realtime_model.integrate(job.result)

Test the claim

9-32 min

Test the end-to-end speech contract offline

Observe: Exact model contract, audio response handling, and fail-closed behavior without an endpoint

9-42 min

Audit controllable-speech media and listening evidence

Observe: 24 reference profiles, routed controls, media hashes, and the distinction from human MOS

Demo budget: 4 minutes · one contiguous terminal block

class: course-terminal

Live demo

Switching to the terminal

$ python -m pytest chapter9/end-to-end-speech/test_step_audio.py chapter9/end-to-end-speech/test_none_content.py -q

$ cd chapter9/controllable-tts && python validate_artifacts.py
Run the command(s), narrate decisions, and point to the observation—not just the output.

What the evidence supports

Finding 1

Full-duplex models replace discrete turns with continuous interaction decisions.

Finding 2

Fast-slow separation preserves responsiveness without forcing every answer to be shallow.

Finding 3

Voice quality must be judged from audio—not configuration labels or text transcripts.


layout: center

Where the claim stops

Boundary condition

End-to-end behavior is harder to attribute to ASR, reasoning, timing, or synthesis when a failure occurs.

layout: center

Engineering takeaway

Design rule

Choose the simplest voice architecture that meets the interaction target, and preserve modality-native observability at every boundary you remove.

Continue the experiment


layout: center class: text-center

Pause and apply

Your turn

What should your fast interaction model be allowed to say before the slow model has verified the answer?

layout: center class: text-center

Next · Lesson 37
Carry perception and action into visual interfaces, where every click changes the next observation.