Contents
Key concepts
Audio front-end and telephony
ASR models typically take 16 kHz audio converted to log-Mel spectrograms (80 or 128 bins, 25 ms windows every 10 ms, so 100 frames per second). Telephone audio is 8 kHz narrowband and often compressed, which removes high-frequency cues; evaluate on real call audio, not studio recordings, and resample consistently between training and serving.
Flow · 3 stepsHow audio becomes log-Mel spectrograms
- Studio audio to spectrogram 16 kHz audio is converted to log-Mel spectrograms with 80 or 128 bins, 25 ms windows every 10 ms, giving 100 frames per second.
- Telephone audio path Telephone audio is 8 kHz narrowband and often compressed, removing high-frequency cues; resample consistently between training and serving.
- Evaluate on real calls The ASR model is evaluated on real call audio, not studio recordings.
Data
| Step | Title | What happens |
|---|---|---|
| 1 | Studio audio to spectrogram | 16 kHz audio is converted to log-Mel spectrograms with 80 or 128 bins, 25 ms windows every 10 ms, giving 100 frames per second. |
| 2 | Telephone audio path | Telephone audio is 8 kHz narrowband and often compressed, removing high-frequency cues; resample consistently between training and serving. |
| 3 | Evaluate on real calls | The ASR model is evaluated on real call audio, not studio recordings. |
Source: This page's text
| Box | Group | Detail |
|---|---|---|
| 16 kHz audio | Input | studio recordings |
| 8 kHz telephone audio | Input | narrowband, often compressed |
| Resample consistently | Front-end | training and serving |
| Log-Mel spectrogram | Front-end | 80 or 128 bins, 25 ms windows every 10 ms |
| ASR model | Evaluation | |
| Evaluate on real call audio | Evaluation | not studio recordings |
Source: This page's text
ASR architectures: CTC, encoder–decoder and transducer
CTC adds a blank symbol and sums over all alignments, assuming outputs are conditionally independent given the audio, so it needs an external LM for best accuracy. Attention encoder–decoders (Whisper, trained on 680,000 hours) are accurate and multilingual but decode over 30-second windows, which makes true streaming awkward. Transducers (RNN-T) combine an audio encoder, a label predictor and a joiner, emit tokens frame by frame and are the default for low-latency streaming; Conformer encoders mix convolution and attention.
ASR evaluation
WER = (substitutions + deletions + insertions) / reference words, after a fixed normalisation of case, punctuation and numbers; it can exceed 100%. For business use, entity accuracy (names, amounts, account numbers) often matters more than WER. Add diarisation error rate, accent and demographic slices, and for streaming the latency per word and how often partial hypotheses are revised.
Text-to-speech and its evaluation
Modern TTS predicts discrete tokens of a neural audio codec with a language model, or uses flow/diffusion acoustic models with a vocoder. Quality is judged with listening tests (MOS on a 1–5 scale, comparative CMOS or A/B preference) plus objective proxies: WER of an ASR model on the synthetic audio, speaker similarity for cloned voices, pronunciation of names and numbers, and artefacts. For agents, time-to-first-audio and prosody consistency across streamed chunks matter as much as MOS.
Voice-agent pipelines versus speech-to-speech models
The cascaded pipeline is VAD/turn detection → streaming ASR → LLM → streaming TTS, with telephony on both ends; it is debuggable and lets you swap components but adds latency at every hop. Full-duplex speech-to-speech models such as Moshi model both speakers as parallel audio streams (around 200 ms practical latency reported) and handle overlap naturally, but are harder to control, ground in tools and audit. Turn detection and barge-in (cancelling TTS and generation when the caller speaks) dominate perceived quality. Production has moved towards a hybrid: OpenAI’s gpt-realtime (generally available from August 2025) is a single speech-to-speech model with phone (SIP) calling and asynchronous tool calls, and GPT-Live-1 (API from September 2026) is a full-duplex voice front end that listens while it speaks and delegates reasoning and tool use to a backend text model, so grounding and audit live in the backend while turn-taking stays in the voice model.
Flow · 4 stepsCascaded voice-agent pipeline
- Turn detection Caller audio arrives over telephony; VAD/turn detection decides the end of turn.
- Transcribe Streaming ASR turns the audio into a transcript that the LLM can start on.
- Generate The LLM emits reply tokens; the first speakable phrase is about 10 tokens at 80 tokens/s.
- Speak Streaming TTS sends the first clause to telephony; audio reaches the caller.
Data
| Step | Title | What happens |
|---|---|---|
| 1 | Turn detection | Caller audio arrives over telephony; VAD/turn detection decides the end of turn. |
| 2 | Transcribe | Streaming ASR turns the audio into a transcript that the LLM can start on. |
| 3 | Generate | The LLM emits reply tokens; the first speakable phrase is about 10 tokens at 80 tokens/s. |
| 4 | Speak | Streaming TTS sends the first clause to telephony; audio reaches the caller. |
Source: This page's text
| Box | Group | Detail |
|---|---|---|
| Caller audio | Input | 8 kHz narrowband |
| Telephony in | Input | telephony on both ends |
| VAD / turn detection | Input | endpointing silence threshold 300 ms |
| Streaming ASR | Compute | streaming ASR |
| LLM | Compute | time-to-first-token 350 ms |
| Streaming TTS | Compute | time-to-first-audio 150 ms |
| Telephony out | Output | telephony and network 100 ms |
| Caller hears reply | Output |
Source: This page's text
Vision encoders and vision-language models
A ViT cuts an image into patches (e.g. 14×14 pixels) and treats each as a token, so a 336×336 image gives 24 × 24 = 576 tokens. CLIP trained image and text encoders contrastively on 400 million pairs, giving a shared embedding space used for zero-shot classification and retrieval. LLaVA-style VLMs project vision features into the LLM’s embedding space and instruction-tune; resolution, tiling and token merging set the cost. Omni models extend this to audio and video in and speech out: Qwen3-Omni (September 2025) splits a ‘Thinker’ that produces text from a ‘Talker’ that streams multi-codebook speech codec tokens, reporting about 234 ms theoretical first-packet latency, and its open weights make it a practical baseline.
Video and vision-language-action models
Video multiplies image tokens by frames, so models sample frames (often around 1 fps) and pool tokens per frame. VLAs such as RT-2 and OpenVLA (7B, trained on 970k robot demonstrations) output robot actions as tokens from a VLM backbone; evaluation is task success in simulation and on hardware, with generalisation splits for new objects, scenes and instructions. Gemini Robotics 1.5 (September 2025) pairs an embodied-reasoning planner with a VLA that writes natural-language reasoning before acting and transfers skills across robot bodies. On the generation side, Veo 3 (May 2025) generates synchronised sound effects, ambience and lip-synced dialogue together with the video.
Multilingual and code-switching
Tokeniser fertility (tokens per word) varies widely by language, changing cost, latency and effective context. Speech systems need language ID, handling of code-switching within a sentence, and test sets per language and accent; self-supervised pre-training helps low-resource languages. Report per-language metrics rather than a single average dominated by English.
Worked examples
Computing WER and spotting what matters
Reference: ‘please transfer two hundred pounds to my savings account’ (9 words). Hypothesis: ‘please transfer to hundred pounds into savings account now’. Compute WER and comment.
Align the sequences (minimum edit distance at word level):
| reference | hypothesis | operation |
|---|---|---|
| please | please | ✓ |
| transfer | transfer | ✓ |
| two | to | substitution |
| hundred | hundred | ✓ |
| pounds | pounds | ✓ |
| to | into | substitution |
| my | — | deletion |
| savings | savings | ✓ |
| account | account | ✓ |
| — | now | insertion |
S = 2, D = 1, I = 1, N = 9 → WER = 4 / 9 ≈ 44%.
What matters more: the amount ‘two hundred’ became ‘to hundred’, so the entity is wrong even though six of the nine reference words are correct. For a banking agent, track amount and account-number accuracy separately and normalise consistently (‘£200’ vs ‘two hundred pounds’) before scoring, or WER will punish formatting rather than recognition.
Latency budget for a phone voice agent
A cascaded voice agent has: endpointing silence threshold 300 ms, ASR finalisation 100 ms, LLM time-to-first-token 350 ms, first speakable phrase (about 10 tokens at 80 tokens/s) 125 ms, TTS time-to-first-audio 150 ms, telephony and network 100 ms. Estimate response latency and get the median under 1 second.
Baseline: 300 + 100 + 350 + 125 + 150 + 100 = 1,125 ms from end of speech to first audio.
Reductions:
- Semantic turn detection: a model that predicts end of turn lets you cut silence to about 200 ms on confident turn ends (−100 ms) without cutting people off mid-thought.
- Speculative start: begin the LLM on the stable partial transcript and discard if the final differs (hides most of the 100 ms ASR finalisation, −80 ms).
- Stream at clause level: send the first clause to TTS after about 5 tokens (−60 ms).
- Co-locate ASR, LLM and TTS in one region near the telephony edge (−40 ms network).
New median ≈ 1,125 − 100 − 80 − 60 − 40 = 845 ms. Measure each stage’s p50 and p95 separately: tail latency usually comes from LLM TTFT under load and slow tool calls, which you mask with short spoken acknowledgements.
CalculatorPhone voice agent latency budget
- First speakable phrase
- 125 ms
- Baseline latency
- 1,125 ms
- Reduced median
- 845 ms
First speakable phrase = First phrase tokens ÷ LLM decode rate × 1000 = 125 ms
Baseline latency = Endpointing silence + ASR finalisation + LLM time-to-first-token + First speakable phrase + TTS time-to-first-audio + Telephony and network = 1,125 ms
Reduced median = max(Endpointing silence − 100, Endpointing silence − Endpointing silence) + max(ASR finalisation − 80, ASR finalisation − ASR finalisation) + LLM time-to-first-token + max(First speakable phrase − 60, First speakable phrase − First speakable phrase) + TTS time-to-first-audio + max(Telephony and network − 40, Telephony and network − Telephony and network) = 845 ms
| Case | Endpointing silence (ms) | ASR finalisation (ms) | LLM time-to-first-token (ms) | First phrase tokens (tokens) | LLM decode rate (tokens/s) | TTS time-to-first-audio (ms) | Telephony and network (ms) | First speakable phrase | Baseline latency | Reduced median |
|---|---|---|---|---|---|---|---|---|---|---|
| Worked example | 300 | 100 | 350 | 10 | 80 | 150 | 100 | 125 ms | 1,125 ms | 845 ms |
Token budget for video understanding
A VLM encodes each video frame as 256 tokens. A user uploads a 10-minute video and asks a question. Estimate tokens at 1 frame per second, and propose a cheaper configuration.
Frames: 10 × 60 × 1 fps = 600. Tokens: 600 × 256 = 153,600 tokens before the question, which is long-context territory with matching prefill cost and position-bias risk.
Cheaper option: 0.5 fps (300 frames) with 2×2 token pooling (64 tokens per frame): 300 × 64 = 19,200 tokens, an 8× reduction.
Trade-off: fast events (a gesture, a scoreboard change) can fall between sampled frames. Better: detect scene changes and sample densely there, or run a cheap captioning pass and retrieve the relevant segments before sending full-resolution frames.
CalculatorVideo understanding token budget
- Frames
- 600 frames
- Tokens before question
- 153,600 tokens
- Reduction vs 1 fps baseline
- 1 ×
Frames = Duration × 60 × Sampling rate = 600 frames
Tokens before question = Frames × Tokens per frame ÷ Pooling factor = 153,600 tokens
Reduction vs 1 fps baseline = 1 × 256 × Pooling factor ÷ (Sampling rate × Tokens per frame) = 1 ×
| Case | Duration (min) | Sampling rate (fps) | Tokens per frame (tokens) | Pooling factor (×) | Frames | Tokens before question | Reduction vs 1 fps baseline |
|---|---|---|---|---|---|---|---|
| Baseline | 10 | 1 | 256 | 1 | 600 frames | 153,600 tokens | 1 × |
| Cheaper option | 10 | 0.5 | 256 | 4 | 300 frames | 19,200 tokens | 8 × |
What changed recently
GPT-Live-1: full-duplex voice front end with a reasoning backend
OpenAI released GPT-Live-1 in its API: one model that listens while it speaks, handles interruptions and short acknowledgements natively, and hands reasoning and tool calls to a backend text model while the conversation continues, priced at $0.05 per minute for the voice layer. OpenAI reports a 30-point gain on Full Duplex Bench over GPT-Realtime-2.1. Voice-agent interviews now ask where turn-taking, tool use and audit should sit when the voice model and the reasoning model are separate.
Wayve and Uber begin supervised autonomous rides in London
Uber and Wayve launched what they describe as the UK’s first public autonomous rides: Ford Mustang Mach-E cars running Wayve’s AI Driver, matched to ordinary UberX, Electric and Comfort requests, with a TfL-licensed driver on board to supervise. For London candidates it makes end-to-end driving models, fleet data, safety cases and the route to driverless operation concrete interview material.
Gemini Robotics 1.5: VLAs that think before acting
Google DeepMind paired Gemini Robotics-ER 1.5, an embodied-reasoning planner that can call tools such as search, with Gemini Robotics 1.5, a VLA that reasons in natural language before moving and transfers skills learned on ALOHA 2 to the Franka and Apptronik Apollo robots without per-robot specialisation. Interviewers use it to probe planner–executor splits, cross-embodiment data and semantic safety evals.
Qwen3-Omni: an open Thinker–Talker omni model
The Qwen team released Qwen3-Omni under Apache 2.0: a mixture-of-experts model that perceives text, images, audio and video and streams speech through a Talker predicting multi-codebook codec tokens, with a reported 234 ms theoretical cold-start first-packet latency and state of the art on 22 of 36 audio and audio-visual benchmarks. It is the reference open alternative to cascaded ASR, LLM and TTS stacks.
Veo 3 generates video with native audio
Google’s Veo 3 generated synchronised sound effects, ambient noise and lip-synced dialogue together with the video, removing the separate audio pass in generative video pipelines. For avatar and video generation roles expect questions on joint audio–visual generation, lip-sync evaluation, and consent and provenance for synthetic speech.
Pitfalls
- Reporting WER without stating the normalisation, or comparing systems normalised differently.
- Evaluating telephony ASR on clean 16 kHz benchmark audio.
- Optimising average voice-agent latency while ignoring p95 and barge-in behaviour.
- Judging TTS by MOS alone for a streaming agent; time-to-first-audio and chunk-boundary artefacts dominate.
- Assuming a VLM sees the full-resolution image; downscaling and tiling decide what detail survives.
- Single-number multilingual results that hide poor performance on low-resource languages or accents.
How interviewers probe it
- Compare CTC, attention encoder–decoder and transducer ASR, then the streaming latency–accuracy trade-off.
- Break down voice-agent latency stage by stage and design interruption handling.
- Design an evaluation for a contact-centre ASR or a new TTS voice before rollout.
- Explain how images become tokens in a VLM and what resolution costs.
- Cascaded pipeline, single speech-to-speech model or full-duplex voice front end with a reasoning backend: which would you ship for a bank’s phone line, and where do grounding, tools and audit live?
- Safety and consent for voice cloning and avatars: watermarking, detection, misuse metrics.
Quiz
Three questions from this guide. Answer each in your head or out loud, show the model answer, then rate yourself. The cards join your practice deck and come back when they are due.
For a phone-based voice agent, break down end-to-end response latency and explain how you’d get the median under a second while keeping interruptions rare.
Model answer, written in a candidate's voice
- Define the latency budget: endpointing, ASR finalisation, LLM TTFT, TTS first audio, telephony hops, and any integration lookups.
- Stream the pipeline: partial ASR into the LLM, phrase-sized LLM chunks into TTS, audio played as generated.
- Tune endpointing for rare interruptions: wait for semantic completeness, not just silence, and use barge-in only on clear user speech.
- Cut variance: co-locate in-region, reduce sequential stages, cache common phrases, and use filler acknowledgements while slow tools run.
- Measure per-stage distributions and tails, not averages, and gate releases on p50/p90/p99.
How do you evaluate a speech-to-text system for a contact-centre customer, and how do real-time constraints change the evaluation?
Model answer, written in a candidate's voice
- Representative domain test set with call/speaker-level holdout and no train/test leakage
- WER = (S + D + I)/N with fixed normalisation; CER where word boundaries are unreliable
- Entity/keyword accuracy for names, account numbers and order IDs weighted heavily
- Diarisation, punctuation/formatting, language ID and code-switching
- Slices by accent, dialect, demographics, intent and 8 kHz telephony noise
- Real-time: partial vs final accuracy, first-emitted vs corrected words, per-word latency, revisions, latency-accuracy curve
- Decision based on tolerable latency plus confidence/abstention, not best-case final WER
How would you evaluate a new text-to-speech model before rollout, and what changes when it powers a streaming conversational agent?
Model answer, written in a candidate's voice
- Define use cases, languages, speakers, emotions, and pass/fail thresholds before testing
- Run listening tests: MOS/CMOS and A/B preference with enough stratified raters for naturalness, prosody, and emotion
- Use objective proxies: ASR intelligibility on synthetic audio, speaker similarity for clones, name/number pronunciation, artefacts and long silences, language coverage
- Check consent and synthetic-speech detection for cloned voices, including provenance and impersonation risk
- For streaming, measure time-to-first-audio and end-to-end latency, chunk-boundary artefacts, partial-text normalisation, and prosody consistency across chunks
- Ship fast vs high-quality tiers with fallback and monitor regressions after rollout
You have finished this topic.
Reading
- Hugging Face Audio courseHands-on route through audio data, ASR and TTS models with runnable code.
- Sequence Modeling with CTCThe clearest visual explanation of CTC alignment, the blank token and decoding.
- Robust Speech Recognition via Large-Scale Weak Supervision (Whisper)Encoder–decoder ASR at scale; useful for robustness and multilingual evaluation arguments.
- Learning Transferable Visual Models From Natural Language Supervision (CLIP)Contrastive image–text pre-training, the basis of most vision encoders in VLMs.
- Visual Instruction Tuning (LLaVA)The simple projector-plus-instruction-tuning recipe behind many open VLMs.
- How we built a realtime system for responsive voice AI in six monthsProduction full-duplex voice: media fast path, WebRTC, asynchronous delegation to a reasoning model, background compaction.
- Moshi: a speech-text foundation model for real-time dialogueFull-duplex speech-to-speech design and the latency case against cascaded pipelines.
- OpenVLA: An Open-Source Vision-Language-Action ModelConcrete open VLA: backbone choices, action tokenisation, evaluation and fine-tuning.
Practise this topic
- For a phone-based voice agent, break down end-to-end response latency and explain how you’d get the median under a second while keeping interruptions rare.
- How do you evaluate a speech-to-text system for a contact-centre customer, and how do real-time constraints change the evaluation?
- How would you evaluate a new text-to-speech model before rollout, and what changes when it powers a streaming conversational agent?
- Sketch the ML and systems pipeline for generating a talking-avatar video from a script, and where LLMs fit.
- A driving model also narrates why it acts. How would you evaluate whether those explanations are faithful and useful?
- What safeguards would you design against misuse of voice cloning or avatar generation, and how would you measure them?
- A customer says their phone agent sometimes goes silent or talks over callers. Diagnose across telephony, speech recognition, the model, the prompt and integrations.
- Compare CTC, attention encoder–decoder and transducer (RNN-T) models for ASR. How do you trade latency against accuracy in streaming?
- For a UK bank’s phone line, compare a cascaded ASR–LLM–TTS voice agent, a single speech-to-speech model, and a full-duplex voice front end that delegates reasoning and tools to a backend model (as in OpenAI’s GPT-Live, 2026). Which would you ship, and where do turn-taking, tool calls, grounding and audit live in each?
- Gemini Robotics 1.5 has its VLA write natural-language reasoning before it acts and transfers skills across different robot bodies. What does explicit reasoning buy a VLA, what does it cost at control rates, and how would you evaluate the cross-embodiment claim?