The interview problem
Design a quality gate that flags out-of-sync talking-head uploads before publication.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Track visible speaking faces and score alignment across candidate time offsets. Separate constant offset from drift over time; allow abstention when the speaker is off-screen or speech is absent. Use consented recordings and synthetic shifts for labels, then test on independently recorded natural failures.
2. Trace the design or derivation
Decode timestamps → speaking-face windows → offset scores → drift fit → review
Retain the original media and produce a proposed correction manifest rather than rewriting it silently. The cited lip-sync work motivates audiovisual correspondence; this audit workflow and linear drift example are original practice, not its reported deployment architecture.
3. Calculate the example
A video starts aligned but audio lags by 120 ms after 60 seconds. A linear approximation gives 2 ms/second drift; one fixed 60 ms correction leaves opposite-sign errors at the endpoints.
4. Failure cases and trade-offs
Dubbing, cuts and multiple visible people break a single-speaker assumption. Automatically moving all audio can damage music synchronization or another speaker.
5. Validation, follow-ups and self-review
Measure offset error and false alarms on correctly aligned files. Follow-up: when can correction be automatic? Self-review: distinguish offset, drift and ambiguous evidence.
Sources and related practice
Technical reference: arxiv.org — Audiovisual lip synchronization; audit workflow is original, not a paper deployment claim.
Source publication/update: 2020-08-23. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Align supplied subtitles to speech; Design a live meeting transcription system.
Continue your preparation
Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.