The interview problem

Practice prompt

Build a meeting-processing service that returns a transcript with anonymous speaker labels and timestamps. Meetings contain interruptions, overlapping speech and participants who speak only briefly. Design the pipeline and evaluation for 10,000 hours of uploaded audio per day. Explain why an accurate transcript can still attribute an action item to the wrong person.

Original ML-design practice, not a reported company interview. Audio timelines and capacity figures are hypothetical. Primary references retrieved September 27, 2026.

1. Separate diarization from identity

Diarization asks which speaker spoke during each interval. Transcription asks which words were spoken. Assigning a real name is a separate identity-resolution problem. Start with meeting-local labels such as speaker A and speaker B, and permit an unknown label.

Do not infer a real identity from voice similarity or the attendee list. If the product supports names, use an explicit user correction or a trusted, authorized channel-to-participant mapping, and keep its provenance separate from acoustic clustering. A shared microphone can contain several speakers even when it belongs to one account.

Define whether results are offline or streaming. This design processes completed recordings and can revise early clusters using later evidence. Preserve uncertainty in action-item attribution rather than turning a weak speaker guess into an authoritative assignment.

2. Build an overlap-aware pipeline

Ingest authorized recordings into access-controlled storage, validate encoding and duration, normalize audio for the chosen models and preserve channel information. Run speech activity and speaker-change segmentation, speaker embeddings, clustering and boundary refinement. Overlap detection identifies intervals with simultaneous speech; an overlap-aware assignment stage must then determine which speakers are active. Detecting overlap alone does not identify them.

Run ASR and word-time alignment alongside diarization, then join words to speaker intervals. An interval with two active speakers cannot always be resolved by choosing the speaker with the greatest time overlap. Use channel separation or an evaluated separation model where available; otherwise retain an ambiguous attribution.

Long recordings need chunking with overlap. Reconcile chunk-local speaker labels into recording-level identities using shared context and embeddings; speaker 1 in chunk two is not automatically speaker 1 in chunk one. Deduplicate overlapped transcript regions and keep all timestamps in the original recording's coordinate system.

Store audio version, model configuration, segmentation, word timestamps and speaker-label mappings separately. Corrections create a new output version, allowing consumers to distinguish changed words from changed speaker assignments.

3. Calculate a diarization error example

Consider a 60-second recording: A speaks alone for 30 seconds, B alone for 20 seconds, both speak for 5 seconds, and the last 5 seconds are silence. Total reference speaker-time is 30 + 20 + 2 × 5 = 60 speaker-seconds, although speech occupies only 55 seconds of wall time.

After the evaluator's optimal global speaker-label mapping, suppose 4 seconds of B's solo speech are assigned to A. During the 5-second overlap the system detects only A, missing B. It also hallucinates one speaker during 2 seconds of silence. Assume the remaining intervals are correct and no boundary collar is excluded.

Speaker confusion contributes 4 seconds, missed speech 5 speaker-seconds and false alarm 2 seconds. Diarization error rate is (4 + 5 + 2)/60 ≈ 18.33%. Dividing by the 55 seconds of speech wall time would use the wrong denominator for this setup.

Report overlap handling, evaluation regions, label mapping and boundary tolerance with every DER result. Excluding overlapping regions or forgiving boundary errors changes the task being scored. Do not compare numbers from incompatible settings as though they measure the same behavior.

4. Evaluate words and attribution separately

A transcript may contain every word correctly while assigning an important sentence to the wrong speaker. In a toy 100-word transcript with no insertions, deletions or substitutions, ordinary WER is zero. After aligning anonymous labels globally to the reference, if twenty correctly recognized words have the wrong speaker label, a separately defined fixed-alignment attribution error is 20%.

That toy attribution measure is not automatically a standard speaker-attributed WER: a production scorer must define alignment, label permutation, overlap and treatment of missing words. Report ordinary WER and a documented speaker-aware metric, plus critical action-item attribution accuracy for the actual product.

A global swap of anonymous A/B labels is not an error if all utterances remain consistently grouped and evaluation permits label permutation. Mixing just some of B's turns into A is different. Named-speaker accuracy requires independently verified name labels and cannot be inferred from anonymous DER.

5. Train and validate on the right meetings

Collect representative annotations for speech intervals, speaker changes, overlap and transcripts. Double-annotate difficult boundaries and document the policy for laughter, backchannels and unintelligible speech. Annotators should not be forced to invent a speaker when the recording offers insufficient evidence. Mark ambiguous reference regions and publish their coverage; do not silently remove difficult audio from the benchmark.

Separate development and test recordings by meeting and, when evaluating generalization to new voices, by speaker. Avoid placing chunks of the same recording in both sets. Include distant microphones, accents, code switching, short turns, similar voices and recordings with many participants.

Measure missed speech, false alarms and confusion separately. Break results down by overlap fraction, speaker count, channel type and short-speaker participation. Duration-weighted averages can hide a person who speaks for ten seconds and is entirely missed; add per-speaker coverage diagnostics.

Calibrate clustering thresholds and optional speaker-count constraints on development data. A known participant count is not necessarily the number of audible speakers: some attendees remain silent, while a shared room may contain unlisted voices.

6. Budget processing and storage

Assume the complete measured pipeline uses 0.1 accelerator-hours per audio-hour, including the intended transcription and diarization stages. Processing 10,000 audio-hours/day requires 1,000 accelerator-hours/day. At 70% planned utilization, each accelerator supplies 16.8 useful hours/day, so the average load needs ceil(1,000/16.8) = 60 accelerators.

This is a workload estimate, not a deadline guarantee. Upload bursts, variable meeting lengths, model batching and retried chunks determine queue latency. Schedule by estimated audio duration and reserve capacity for retries and reprocessing after corrections.

Uncompressed mono audio at 16 kHz and 16 bits/sample uses 32,000 bytes/s, or 115.2 MB/hour. Ten thousand hours occupy about 1.152 TB/day; thirty days require 34.56 TB before replicas and derived artifacts. Compression and multiple channels change these figures. Retain source quality needed for review rather than discarding it based only on the model input format.

7. Preserve uncertainty through correction

Show a reviewer an audio segment with waveform, words and competing speaker assignments. Permit relabeling a turn or splitting/merging a cluster, and make the scope explicit: a local turn correction should not silently rename every occurrence of a cluster.

Publish corrections with output versions and invalidate dependent summaries or action items. Protect newer human corrections against stale background reprocessing through conditional version checks. Keep meeting-local speaker embeddings within the authorized workflow and avoid silently building a cross-meeting identity index.

If audio is clipped, a channel is missing or confidence is poor, return partial results with marked uncertain spans. A clean-looking transcript that hides missing speakers is worse evidence than an explicit limitation. Monitor failure rates, review volume, processing delay and speaker-label churn after model updates.

8. Follow-ups and self-review

Follow-ups: Why does overlap add twice to reference speaker-time? Can WER be zero while an action item is misassigned? How do chunk-local labels become consistent? What if the attendee count differs from the audible speaker count? Which changes require downstream summary regeneration?

Score 0–2 each for identity boundaries, overlap-aware architecture, correct metric calculation, representative evaluation and versioned correction handling.

Sources and next steps

The meeting timeline, word-attribution counterexample, capacity figures and product workflow are original. No model benchmark performance is claimed.

Continue your preparation

Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.