The interview problem
Design a service that timestamps an existing transcript against an audio recording and flags text that was never spoken.
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
Assume mostly accurate supplied text and offline processing. Normalize punctuation while preserving a mapping to original words, compute acoustic token scores and find a monotonic alignment constrained by the transcript. Use blank-aware sequence alignment and include a rejection path for long mismatches. Segment long recordings with overlap and reconcile boundaries. Version tokenization and audio resampling together. Evaluate timestamp error only for matched words, while separately reporting missing and extra transcript words.
2. Trace the design or derivation
Normalize supplied words → compute acoustic scores → constrain alignment → reject mismatches → emit spans
For chunked audio, overlap boundaries and reconcile duplicate words by their original transcript indices. Keep uncertainty for words spanning a chunk edge. Alignment confidence should combine acoustic support and path alternatives; a narrow timestamp returned by an optimizer does not itself quantify uncertainty about whether the word occurred.
3. Calculate the example
A 12-second clip at a 20 ms acoustic stride produces 600 frames. A token assigned to frames 100 through 124 spans approximately 2.00 to 2.50 seconds under half-open frame intervals.
4. Failure cases and trade-offs
A forced aligner can confidently squeeze unspoken text into silence. Background lyrics and repeated phrases create alternative matches. Unconstrained transcription can help identify mismatches but introduces its own recognition errors. Never equate an alignment path with proof that every supplied word was spoken.
5. Validation, follow-ups and self-review
Test repeated words, deleted sentences and long silence. Follow-up: how would music change alignment confidence? Self-review: state time conventions, mismatch handling and separate coverage from timestamp accuracy.
Sources and related practice
Technical reference: www.cs.toronto.edu — CTC alignment paths, blanks and sequence probabilities.
Source publication/update: 2006. 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 Design a live meeting transcription system; Understand CTC paths, blanks and repeated labels.
Continue your preparation
Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.