The interview problem
Design a service that transcribes live meetings for 10,000 concurrent meetings. Show provisional captions within two seconds of spoken words under normal conditions, then produce a corrected, speaker-labeled transcript after the meeting. Handle interruptions, shared microphones, reconnects and user corrections. Explain where separating overlapping voices helps and where it can make the result worse.
Original ML system-design practice. This is not a reported company question. All workload, latency and evaluation figures below are illustrative assumptions. Interview date: not applicable. Research retrieved September 29, 2026.
1. Define the product contract
Assume English-first meetings of up to one hour, with up to twenty participants. Some clients provide participant audio tracks; room devices provide a mixed track. Participants receive a recording/transcription indicator and the meeting owner controls access. Translation, summaries and action-item extraction are downstream products, outside this core design.
Separate three promises: time to the first provisional words, time until those words stop changing, and time to the final transcript. Set an illustrative p95 first-caption target of two seconds from word completion and a final-transcript target of five minutes after meeting end. These require measurement; average inference speed alone cannot establish either target.
Show anonymous meeting-local speaker labels unless a trusted channel mapping or explicit correction establishes a name. A laptop account does not identify everyone speaking near its microphone. Preserve uncertain spans and gaps instead of producing a misleadingly complete transcript.
2. Use a live path and a finalization path
clients → authenticated audio gateway → sequenced audio log
├→ streaming workers
│ → ASR + speaker evidence
│ → revision events → caption clients
└→ retained audio chunks
→ finalization queue
→ overlap repair + ASR + diarization
→ versioned final transcriptThe control plane creates meeting IDs, scoped ingest credentials and access rules. The data plane validates sample rate, channel metadata and sequence numbers; partitions processing by meeting; and writes durable chunks according to the retention policy. Clients may receive low-latency acknowledgments before archival durability, but the protocol must distinguish the two so reconnects know what needs replay.
Prefer separate source tracks when available. Avoid mixing them merely to separate them again later. Align tracks by capture timestamps and monitor clock drift; packet arrival time is not the time a word was spoken. Preserve original timing through resampling and preprocessing. Echo cancellation and cross-track leakage detection prevent the same physical utterance appearing twice, but do not deduplicate solely because two people said the same word.
Streaming workers keep bounded acoustic context and partial decoding state. Finalization can use longer context and more expensive models. Store the audio version, model version, word times, speaker evidence and correction history so a result can be reproduced. The finalizer replaces a transcript version atomically rather than exposing a mixture of old and new segments.
3. Treat separation as an evaluated branch
For a mixed room recording, begin with a baseline recognizer and an overlap detector. Compare a continuous-separation branch on representative meetings. Separating voices produces audio streams; diarization groups speech by speaker; recognition predicts words. These stages solve different problems, and a cleaner-sounding signal is not sufficient evidence of a better transcript.
A two-output separator represents at most two simultaneous sources in this design, not two people in the entire meeting. Alice and Bob can occupy its two outputs now, while Carol and Alice occupy them later. Output channel 1 is not a permanent speaker identity. Match adjacent windows using shared acoustic evidence and keep meeting-local speaker association separate.
For an original offline window plan, use eight-second windows with a six-second hop. Adjacent windows overlap by two seconds and the interior compute multiplier is 8/6 ≈ 1.33 before boundary effects. Match output permutations over shared audio, reconcile the overlap, and emit each original time interval once. A silent overlap provides little matching evidence; retain uncertainty rather than forcing a confident channel identity.
That full-window plan does not meet a two-second live-caption target for words near a window's beginning. Use a genuinely streaming model with bounded lookahead for live separation, or deliver provisional baseline captions and apply expensive separation during finalization. Three simultaneous speakers exceed a two-source assumption: flag reduced confidence, use a validated higher-capacity model, or retain an unresolved span.
4. Make revisions and reconnects explicit
Each audio chunk includes meeting ID, track ID, capture start, sample count, client epoch and sequence number. Deduplicate retries within that identity. An epoch distinguishes a restarted capture process from an old sequence counter. Buffer modest reordering, then record missing intervals explicitly; do not insert fabricated speech to fill network gaps.
Caption events contain a segment ID, revision number, start/end times, text, speaker label and state such as provisional or stable. The server publishes revisions that replace earlier text rather than appending every partial hypothesis. Clients ignore stale revisions and resume from an event cursor, or fetch a snapshot when replay history has expired.
For example, segment 42 revision 1 says “ship on Thursday”; revision 2 says “ship on Friday.” A reconnect must not show both sentences. If a reviewer later corrects revision 2, a background finalizer based on revision 1 cannot overwrite it silently. Store human edits as versioned overlays and surface conflicts when new alignment changes the underlying span.
Worker failover may restart recognition from a recent durable audio boundary. Keep output revisions idempotent and let newer epochs supersede obsolete worker output. A completed meeting with missing chunks is a partial transcript, not a successful complete one.
5. Work the capacity and latency numbers
Assume one mono-equivalent input per meeting at 16 kHz and 16-bit PCM for this estimate. Separate participant tracks multiply ingress and storage; concurrency is not the same as daily recorded duration.
bytes/second/meeting = 16,000 × 2 = 32,000 10,000 meetings = 320 MB/s ≈ 2.56 Gbit/s payload one audio-hour = 32,000 × 3,600 = 115.2 MB one full hour at peak = 1.152 TB before replicas/artifacts
Compression reduces transport bytes, but a decoded model-input budget still needs samples and channels. Measure inference under the intended model, batching, overlap rate and lookahead. Suppose one accelerator sustains 80 concurrent mono-equivalent streams while meeting latency goals. At 70% of that measured throughput, plan for 56 streams per accelerator: ceil(10,000/56) = 179 accelerators. This illustrative estimate excludes failover reserves and finalization workers.
A provisional latency allocation might be 250 ms capture batching, 100 ms network, 150 ms queueing, 600 ms model/context work and 100 ms delivery/rendering: 1,200 ms total. The arithmetic is a budget, not an observed p95; stage percentiles cannot simply be added to prove an end-to-end percentile. Endpointing can delay stable words further.
For finalization, suppose the measured complete offline pipeline takes 0.05 processing seconds per audio second on an assigned worker, including chunk stitching. A one-hour meeting then needs 180 seconds; reserving 90 seconds for queueing and 30 for publication uses the full five-minute budget. This leaves no retry margin. If 1,000 one-hour meetings end together and each requires a dedicated worker for those 180 seconds, a pool of 500 processes the second wave no earlier than 360 seconds, already missing the target. Provision for end-time bursts, reuse safe incremental work, or change the finalization promise; daily average capacity is insufficient.
Monitor queue age and deadline misses, not just GPU utilization. Under overload, admit fewer meetings or degrade to the tested baseline caption path, while retaining audio for finalization if allowed. Adding a separation pass to every stream without reserving its compute can turn an accuracy feature into a latency incident.
6. Evaluate the whole transcript
Create authorized, annotated meeting data with words, timestamps, speaker turns and overlapping speech. Split by meeting, and by speaker when testing unseen voices. Keep chunks from one meeting in one split. Include room microphones, headset tracks, accents, names, numbers, code switching, quiet voices and short interruptions. Synthetic mixtures help training, but held-out real meetings are needed to expose deployment mismatch.
Compare the same ASR model with and without separation, then evaluate the complete final pipeline. Define token normalization, allowed speaker permutation and how overlap is scored. Use a documented multi-speaker word metric and a separate speaker-attribution metric; a single chronological word string can make simultaneous speech alignment arbitrary.
Here is an invented aggregate comparison using a fixed compatible word-alignment protocol and 1,000 reference words:
| Pipeline | Substitutions | Deletions | Insertions | Word error rate |
|---|---|---|---|---|
| Baseline ASR | 80 | 70 | 20 | 17% |
| ASR after separator A | 60 | 100 | 20 | 18% |
WER is (substitutions + deletions + insertions)/reference words. Separator A removes some competing speech but also loses words: a better signal-quality score would not justify this regression. Inspect overlap and non-overlap slices separately; gains on interruptions can conceal damage to otherwise clear speech.
Measure speaker-attributed word errors, omitted speakers, timestamp accuracy and critical names/numbers alongside ordinary word errors. For live captions, measure end-to-end first-word latency, stabilization delay and revision churn. Test silence and music for invented text. Bootstrap comparisons at the meeting level rather than treating correlated words as independent samples. Only claim an improvement supported by the intended meeting population and scoring protocol.
7. Plan failure handling and rollout
- Track leakage or echo: duplicate words from one utterance. Inspect synchronized acoustic evidence and device configuration.
- Separation damage: a quiet interruption disappears. Compare the original audio and mark uncertain output; do not silently choose the cleanest-sounding stream.
- Speaker swaps: output channels change between windows. Reconcile local permutations without treating channels as people.
- Reconnect gaps: display a timed missing-audio marker and retry recoverable chunks.
- Slow finalization: show provisional availability and processing status; isolate the finalization pool from live-caption capacity.
- Access or deletion changes: enforce meeting authorization on exports and audio playback, and propagate deletion through audio, derived transcripts and caches under a documented retention policy.
Shadow the new branch on an authorized evaluation set, compare complete transcripts, then roll out by meeting cohort with rollback to a pinned model version. Track processing cost per audio-hour, failed meetings and corrections alongside accuracy. A model rollback does not justify overwriting user corrections or restoring deleted recordings.
Follow-ups and self-review
How do twenty meeting participants fit into a two-output separator? What changes with three overlapping speakers? How do you meet a live latency target without waiting eight seconds? What happens when a user edits a span that the finalizer splits into two? How would you budget ten participant tracks per meeting?
Score 0–2 each for a clear live/final contract, correct time and revision handling, overlap/identity distinctions, justified capacity arithmetic and end-to-end evaluation. A strong answer makes uncertainty visible and proves improvement on transcripts. An excellent answer explains why separation is optional and why a faster or cleaner individual model can still worsen the service.
Sources and related guides
- Chen et al.: Continuous speech separation — dataset and analysis — submitted January 30, 2020; revised May 7, 2020. Supports continuous-overlap evaluation and the need to test recognition outcomes.
- von Neumann et al.: Meeting Recognition with Continuous Speech Separation and Transcription-Supported Diarization — submitted September 28, 2023; revised May 6, 2024. Research example of separating recognition and speaker-assignment stages.
- NIST: Rich Transcription Evaluation — transcription and speaker evaluation background; exact page publication date not established here.
Retrieved September 29, 2026. The workload, event protocol, window plan, latency budget and metric table are original design examples, not published benchmark claims. Continue with offline speaker attribution and meeting action-item extraction.
Continue your preparation
Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.