Tech, ExplainedData platforms and AI
Part

Real-time voice AI

Voices that answer without the awkward pause.

INSIDE: SPEECH AND VOICE AIHOW IT WORKS · A KANPUR SERVICE CENTRE'S REMINDER CALLThe agent callsone of 800customers whosebikes are duefor serviceSpeech-to-textcatches 'Haan,bataiye'in about150 millisecondsThe languagemodel writesthe replyThe voice modelstarts producingsound 90millisecondsafter the firstwords are readyThe customerhears the replybegin in underhalf a secondWhen heinterrupts,the agent stopsand listensALSO TALKS TOVoice agent testing↗ SOFTWARE TESTINGVoice assistant modules↗ HOME TECHNOLOGYINSIDE: SPEECH AND VOICE AIHOW IT WORKS · A KANPURSERVICE CENTRE'S REMINDER CALLThe agent calls one of800 customers whose bikesare due for serviceSpeech-to-text catches'Haan, bataiye' in about150 millisecondsThe language model writesthe replyThe voice model startsproducing sound 90milliseconds after thefirst words are readyThe customer hears thereply begin in under halfa secondWhen he interrupts, theagent stops and listensALSO TALKS TOVoice agent testing↗ SOFTWARE TESTINGVoice assistant modules↗ HOME TECHNOLOGYINSIDE: SPEECH AND VOICE AI · A KANPUR SERVICECENTRE'S REMINDER CALLThe agent calls one of 800 customerswhose bikes are due for service↓Speech-to-text catches 'Haan, bataiye' inabout 150 milliseconds↓The language model writes the reply↓The voice model startsproducing sound 90 millisecondsafter the first words are ready↓The customer hears the reply begin inunder half a second↓When he interrupts, theagent stops and listensALSO TALKS TOVoice agent testing↗ SOFTWARE TESTINGVoice assistant modules↗ HOME TECHNOLOGY
Real-time voice AI starts producing a service-centre agent's reply 90 milliseconds after its first words are ready, so the Kanpur customer hears it begin in under half a second, and stops when he interrupts.
opens a page inside this one a page in the same scene a page in another scene a concept page a label only, with no page

Real-time voice AI is voice models built to respond almost instantly inside apps, so that a voice agent replies without the awkward pause that makes a caller think the line has dropped. Most of these models turn text into speech, or speech into speech, and begin producing sound within a small fraction of a second. Some are built on a different design from the transformer behind most of today's language models.

In a phone conversation, people expect a reply within about half a second after they stop speaking. A voice agent has to hear the caller, decide the answer and say it, all within that time. The time until the first sound of the reply matters most. So a real-time voice model streams its output. It sends the sound of the first word while it is still preparing the later words, and the caller hears the reply begin early.

Why does the design matter? A transformer, the design behind most language models, looks back over everything in the conversation so far each time it produces the next piece. The longer the conversation, the more it has to read again. Some real-time voice companies use another design, called a state space model. It keeps a summary of everything so far, of a fixed size, and updates it with each new piece of sound. Its work per step does not grow as the conversation gets longer, which helps on long calls and on small devices. This is a question of inference, which means running the trained model, as the page on training vs inference explains.

Say a chain of two-wheeler service centres in Kanpur uses a voice agent to call 800 customers a week whose bikes are due for service. One customer answers, 'Haan, bataiye.' The speech-to-text step catches this in about 150 milliseconds. The language model writes the reply. The real-time voice model starts producing sound 90 milliseconds after the first words of the reply are ready. The customer hears the agent begin in under half a second. When he interrupts with 'Saturday ko ho sakta hai?', the agent stops its reply at once and listens. This is called barge-in.

No two calls go the same way, so companies test such agents with voice agent testing, using simulated callers. The same fast models run inside voice assistant modules for smart speakers. They belong to speech and voice AI, next to speech-to-text (ASR) models, which handle the listening half of the conversation.

Tech, Explained is a part of ingrid.fyi. Every page explains one piece of technology in plain words.