SeniorPerformance

You are adding a voice interface to your assistant. What changes architecturally when the latency budget is conversational?

What they are really testing: Voice is the frontier where 2026 products compete, and its budget is brutal: humans notice response gaps beyond about a second. Tests whether they can re-architect a pipeline for time-to-first-audio rather than bolt speech onto a text stack.

A real interview question

You are adding a voice interface to your assistant. What changes architecturally when the latency budget is conversational?

What most people say

drag me

Add speech-to-text in front of the existing pipeline and text-to-speech after it, using streaming where possible to keep it responsive.

Bolt-on thinking: transcribe fully, run the same 4-second text pipeline, then synthesise, lands at 6+ seconds of dead air, and streaming "where possible" without redesigning stage overlap is exactly the part that was hard.

The follow-ups they ask next

  • The assistant needs a 2-second tool call mid-turn. How do you keep the conversation alive?

    Acknowledge immediately with a natural filler generated before the tool call, stream the real answer the moment the result lands, and cap tool time with a spoken fallback. Dead air is the failure, not the latency itself.

  • How does barge-in actually work end to end?

    Echo-cancelled always-on listening detects user speech over playback, synthesis halts within maybe 100ms, generation cancels, and the context must record where playback stopped, otherwise the model believes the user heard content that was cut off.

What the interviewer is listening for

  • Quotes the budget and targets time-to-first-audio, not total latency
  • Overlaps STT, generation and sentence-level TTS, with endpointing named as critical
  • Knows the speech-to-speech versus hybrid trade and designs barge-in

What sinks the answer

  • STT and TTS bolted onto the unchanged text pipeline
  • No number for what conversational latency means
  • Barge-in and endpointing entirely absent

If you genuinely do not know

Say this instead of freezing. Reasoning out loud from what you do know beats silence every single time, and a good interviewer is listening for exactly that.

Voice changes the budget to [first audio in under about a second], so [stream and overlap everything: STT while they speak, fast endpointing, generation streaming, sentence-level TTS], [slim the pipeline: faster model, trimmed context, speculative retrieval, short answers], consider [speech-to-speech or hybrid], and build [barge-in, fillers over tool calls, p95 first-audio monitoring].

Keep going with performance

All 57 ai engineer questions

Knowing the answer is not the same as recalling it under pressure

Sign in to send the questions you fumble to spaced recall, so they come back right before you would forget them, and learn the concepts behind them with hands-on labs.

Start free