Building with AILesson 48 of 80

Module 5 · Conversation, memory and the interface

Voice in and out: transcription, speech and the latency budget

In this lesson

  • 9 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 6 of 9 in this chapter

This chapter’s goalBuild the stateful, user-facing half of an AI feature: a conversation store with a trimming and compaction policy, cross-session memory a user can inspect and delete, clarifying questions only where they pay for themselves, a chat or inline interface whose controls match what the model can and cannot do, a voice path with a stated latency budget, an upload pipeline with limits, and feedback capture whose numbers you can interpret rather than merely collect.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
From the user’s last word to the first spoken syllableCascade, nothing streamed2400Cascade, every stagestreamed1200Speech-to-speech model750milliseconds to the first spoken syllableStreaming every stage, rather than making any one component faster, is what moves the number: partialtranscripts arrive while the person is still talking, and speech starts on the first completedsentence. Past two seconds the silence reads as a fault.
Streaming every stage, rather than making any one component faster, is what moves the number: partial transcripts arrive while the person is still talking, and speech starts on the first completed sentence. Past two seconds the silence reads as a fault.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 9Free · no account needed
Lesson steps

Two pipelines and one budget

The classic voice assistant is a cascade: speech comes in, a speech-to-text model transcribes it, the language model answers in text, and a text-to-speech model speaks the answer. Each stage adds delay, and the delays add. People expect a reply to begin within about a second of finishing a sentence; past two seconds the silence reads as a fault. That budget, roughly a thousand milliseconds from the user’s last word to the first spoken syllable of the reply, is the constraint every decision in this lesson serves.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Python, from Zero, for AI exam.

Stuck on something?Ask Sayali, your AI tutor

How to cite: Addaly (2026) ‘Voice in and out: transcription, speech and the latency budget’, in Building with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-with-ai/voice-in-and-out (Accessed: 29 November 2026).