AlgoViz

Real-time voice interview architecture

hard 6 min

A voice interaction has several clocks.

Trace the example

Follow the evidence through each stage, then test a change in the case.

Interrupt the interviewer halfway through a question

Interrupt the interviewer halfway through a question. Selected component: Microphone stream inside Candidate device.
Open full-size diagram

Candidate device

Candidate begins speaking again

The input stream continues during playback. Track turn identity and the device clock so the new speech can be associated with an interruption.

The answer was fully generated before interruption, but only half was audible. Which history should guide the next turn?

Interrupt an answer in the playback buffer

Retain 1.2 s of heard speech · discard 1.2 s of unheard audio

The reply contains 2.4 seconds of generated audio. The client reports its played offset at interruption. Transcript alignment determines which words belong in the next turn.