LearnSystem design

Meeting/call transcription and summarisation

Design a service that transcribes live meetings and customer calls with speaker labels, then produces summaries and action items within a minute of the call ending, for enterprise customers in many languages.

Applied LLM8 parts

Contents

What to cover

Sketch your own design first. A complete answer has these parts; the notes say what each should settle.

  1. Requirementsreal-time vs post-call needs; languages/code-switching; accuracy targets per entity type; deployment (cloud vs on-prem); data retention; integration targets (CRM)
  2. Estimates
  3. API
  4. Data model
  5. Architectureaudio ingestion (WebRTC/SIP); streaming ASR with partials and finals; diarisation; punctuation/formatting/entity normalisation; transcript store; post-call LLM summarisation with structured action items, grounded with timestamps; custom vocabulary; PII redaction; evaluation (WER, diarisation error, summary faithfulness); on-prem/container option
  6. Deep divessummary assigns an action to the wrong speaker — where did it go wrong?; How do you evaluate summaries across 20 languages?
  7. Trade-offslatency vs accuracy (lookahead context); streaming partial stability vs speed; summarise from partial vs final transcript; per-customer custom models vs one model
  8. Evaluationseparates real-time and post-call paths; explicit ASR and diarisation metrics; grounded summaries with timestamps; privacy/redaction

Reference design

One way to answer it, part by part. Open a part once you have your own version of it.

Requirements

Functional: ingest live meetings (Zoom, Teams, Meet bots or SDK) and phone calls (SIP, contact-centre platforms); live captions with speaker labels; after the call, a summary, decisions and action items with owners and due dates, each linked to timestamps; push to CRM and ticketing.

Assumptions to confirm

  • Real-time vs post-call: live captions and agent assist need partials < 1 s and finals < 2 s; the post-call summary must be ready within 60 s of the end, p95.
  • Languages and code-switching: 30+ languages with automatic language ID; code-switching within a call (Hindi–English, Spanish–English) for key markets.
  • Accuracy targets per entity type: names, numbers, amounts, dates, product terms; e.g. ≥ 98% accuracy on numbers and amounts, with custom vocabulary per customer.
  • Deployment: multi-region SaaS (UK, EU, US) plus a containerised on-prem/VPC option for banks and governments with no outbound calls.
  • Data retention: configurable per tenant — zero audio retention up to multi-year retention for regulated call recording (e.g. MiFID II record keeping); deletion on request.
  • Integration targets: Salesforce, HubSpot, Zendesk, Teams/Slack, webhooks.
  • Volume: ~2M meetings and calls/day, average 30 minutes.

Estimates

CalculatorPost-call timing budget

Second-pass ASR/diarisation = Call length × 60 ÷ Second-pass speed

Total processing = Second-pass ASR/diarisation + LLM summary + Grounding check

Headroom to target = Target − Total processing

Worked cases
CaseCall length (min)Second-pass speed (× real time)LLM summary (s)Grounding check (s)Target (s)Second-pass ASR/diarisationTotal processingHeadroom to target
Default301001036018 s31 s29 s
The post-call path spends about 18 s on second-pass ASR and diarisation, about 10 s on the LLM summary and about 3 s on grounding, leaving headroom inside the 60 s p95 target.Diagram drafted by a local AI model (Inkling 2 Mini) from this page's text and drawn from data. Checked by an independent reviewer.
  • Audio: 2M × 0.5 h = 1M audio hours/day. Average concurrency 1M / 24 ≈ 42k streams; business-hours peak ≈ 2.5× → ~100k concurrent streams.
  • Streaming ASR: assuming ~500 streams per GPU for an efficient chunked model → 200 GPUs at peak, ~250 with headroom, spread across regions.
  • Post-call burst: meetings end on the hour and half-hour. 100k streams / 30 min ≈ 55 endings/s on average at peak, 3–5× in the minute after :00 → ~250 post-call jobs/s to start promptly.
  • Post-call path per call: second-pass ASR and diarisation over 30 min at ~100× real time ≈ 18 s; LLM summary with ~8k input tokens (transcript ≈ 6k + instructions) and ~600 output tokens ≈ 10 s; grounding check ≈ 3 s → ~30 s, leaving headroom for queueing within the 60 s target only if capacity is pre-warmed before the half-hour.
  • LLM cost: 2M × 8k = 16B input tokens/day at an assumed $0.5/M = $8k, plus 1.2B output tokens at $2/M = $2.4k → ~$10k/day, about half a cent per call.
  • Storage: transcripts ~30 KB per call → 60 GB/day; audio, where retained, at ~7 MB per hour (Opus 16 kbps) → ~7 TB/day.

API

WS /v1/stream?language=auto&diarisation=speaker&max_delay=1.0&vocabulary_id=v_12&channels=2
  client → binary audio frames (16 kHz PCM or Opus), {"type": "end"}
  server → {"type": "partial", "text", "words": [{w, start, end, conf, speaker}]}
           {"type": "final",   "text", "words": [...], "speaker": "S2", "language": "en"}

POST /v1/calls/{id}/end                      → triggers post-call processing
GET  /v1/calls/{id}/transcript?format=json|vtt
GET  /v1/calls/{id}/summary
  → {summary, decisions[], action_items: [{text, owner: {speaker, name?, confidence},
     due?, evidence: [{start, end}]}], topics[], language, model_version}
POST /v1/vocabularies   {terms: [{content, sounds_like[]}]}
POST /v1/integrations/{crm}/push   {call_id, mapping}
Webhooks: transcript.final, summary.ready

Browser and mobile SDKs authenticate with short-lived tokens minted by the customer’s backend, never API keys. A stream is pinned to one regional worker; on reconnect the client resumes from the last final’s end time so no audio is lost or transcribed twice.

Data model

  • Tenant: region, deployment mode, retention policy, redaction policy, integrations, vocabularies.
  • Call: id, tenant, source (bot | SDK | SIP), channels, languages detected, start/end, participants from the meeting platform or CRM, retention date.
  • Utterance: call_id, start, end, speaker_id, channel, language, text, word timings and confidences, pass (streaming | second-pass).
  • SpeakerMap: speaker_id → participant identity, method (dual channel, platform active-speaker events, voice enrolment, inferred), confidence.
  • Summary: call_id, version, model and prompt versions, sections, decisions.
  • ActionItem: text, owner (speaker and name), due date, evidence timestamps, confidence, accepted/edited by user.
  • RedactionMap: PII spans and entity types, token vault reference for authorised re-identification.
  • Vocabulary: tenant terms and pronunciations.

Transcripts in a document store partitioned by tenant and region; audio in object storage with lifecycle rules; Kafka for call events.

Architecture

Flow · 4 stepsLive transcription and post-call summarisation

Live transcription and post-call summarisationAudio enters from meeting bots, WebRTC SDK or SIP into a regional ingestion gateway, then streaming ASR, online diarisation, formatting and PII redaction, ending at the transcript store and live captions. A separate call-end event feeds the post-call pipeline, which takes the recorded full audio from the gateway, runs second-pass ASR and offline diarisation, then LLM summarisation with grounding, summary storage and webhooks or CRM push.Bots / WebRTC SDK / SIPlive meetings and callsRegional ingestiongatewayjitter buffer, resample 16kHz, VADCall end eventtriggers post-callprocessingStreaming ASRpartials and finalsSecond-pass ASRoffline diarisation, fullaudioDiarisation +formattingspeaker embeddings, PIIredactionLLM summarisergrounding check, citedtimestampsTranscript storepartitioned by tenant andregionSummary storedecisions and actionitemsLive captions (WS)speaker-labelledWebhooks / CRMpushsummary.ready,transcript.finalfull audio1234InputReal-timePost-call
  1. Ingest Audio enters via bots, SDK or SIP; the gateway buffers, resamples to 16 kHz and runs VAD.
  2. Live path Streaming ASR emits partials and finals; diarisation, formatting and PII redaction follow, then the transcript is stored and captions are pushed.
  3. Call end The call-end event triggers the post-call pipeline; second-pass ASR and offline diarisation run on the recorded full audio.
  4. Summarise The LLM summariser produces structured JSON with cited timestamps; grounding check, summary store and webhooks or CRM push complete the path.

Live captions flow from ingestion through streaming ASR, diarisation, formatting and redaction to the transcript store, while the call-end event triggers a separate post-call path on the full audio.Diagram drafted by a local AI model (Inkling 2 Mini) from this page's text and drawn from data. Checked by an independent reviewer.
Data
Steps
StepTitleWhat happens
1IngestAudio enters via bots, SDK or SIP; the gateway buffers, resamples to 16 kHz and runs VAD.
2Live pathStreaming ASR emits partials and finals; diarisation, formatting and PII redaction follow, then the transcript is stored and captions are pushed.
3Call endThe call-end event triggers the post-call pipeline; second-pass ASR and offline diarisation run on the recorded full audio.
4SummariseThe LLM summariser produces structured JSON with cited timestamps; grounding check, summary store and webhooks or CRM push complete the path.

Source: This page's text

Boxes
BoxGroupDetail
Bots / WebRTC SDK / SIPInputlive meetings and calls
Regional ingestion gatewayReal-timejitter buffer, resample 16 kHz, VAD
Streaming ASRReal-timepartials and finals
Diarisation + formattingReal-timespeaker embeddings, PII redaction
Transcript storeReal-timepartitioned by tenant and region
Live captions (WS)Real-timespeaker-labelled
Call end eventPost-calltriggers post-call processing
Second-pass ASRPost-calloffline diarisation, full audio
LLM summariserPost-callgrounding check, cited timestamps
Summary storePost-calldecisions and action items
Webhooks / CRM pushPost-callsummary.ready, transcript.final

Source: This page's text

Meeting bots / WebRTC SDK / SIP (dual channel where possible)
  ─► Regional ingestion gateway: jitter buffer, resample to 16 kHz, VAD
  ─► Streaming ASR: chunked conformer-transducer, language ID, vocabulary biasing
        partials (unstable tail) + finals
  ─► Online diarisation: speaker embeddings + clustering, fused with channel
     and platform active-speaker metadata
  ─► Formatting: punctuation, inverse text normalisation (numbers, dates,
     currencies), entity normalisation
  ─► PII redaction (NER + patterns) ─► transcript store ─► live captions (WS)
Call end event ─► post-call pipeline (priority queue, pre-warmed workers):
  second-pass ASR + offline diarisation (full context, more accurate)
  ─► LLM summariser: structured JSON, every item cites utterance timestamps
  ─► grounding check (each item entailed by its cited utterances; owner = speaker
     of the commitment) ─► summary store ─► webhooks / CRM push
On-prem: the same containers via Helm, local ASR and LLM, no external calls

Deep dives

Sequence · 6 stepsDebugging a wrong-speaker action item

Debugging a wrong-speaker action itemA reviewer asks each stage whether the evidence supports the assigned owner, then the LLM hands owner and evidence to a deterministic check. The final step confirms the owner matches the cited utterance's speaker unless delegation is explicit.ReviewerDiarisationSpeaker mapASRLLMDeterministiccheck1voices merged or split?compare channel /active-speaker data2is S2 the right participant?check S2 -> participant name3name or pronoun misrecognised?check name / pronoun4A's 'I'll send it over' -> B?owner = speaker of committing utterance5owner + evidence6owner = speaker?
Debugging a wrong-speaker action itemA reviewer asks each stage whether the evidence supports the assigned owner, then the LLM hands owner and evidence to a deterministic check. The final step confirms the owner matches the cited utterance's speaker unless delegation is explicit.ReviewerDiarisationSpeaker mapASRLLMDeterministiccheck1voices merged or split?compare channel / active-speaker data2is S2 the right participant?check S2 -> participant name3name or pronoun misrecognised?check name / pronoun4A's 'I'll send it over' -> B?owner = speaker of committing utterance5owner + evidence6owner = speaker?
  1. Check diarisation Inspect the evidence timestamps and compare diarisation with channel or platform active-speaker data.
  2. Check speaker mapping Check whether S2 is linked to the wrong participant name.
  3. Check ASR Check whether a name or pronoun was misrecognised.
  4. Check LLM attribution Check whether A's committing utterance was attributed to B.
  5. Send owner and evidence Pass the owner and cited evidence to the deterministic check.
  6. Verify owner Confirm the owner matches the cited utterance's speaker unless delegation is explicit; otherwise show owner unclear.

The reviewer walks the action item back through diarisation, speaker mapping, ASR and LLM attribution before the deterministic owner check.Diagram drafted by a local AI model (Inkling 2 Mini) from this page's text and drawn from data. Checked by an independent reviewer.
Data
Messages
StepFromToMessage
1ReviewerDiarisationvoices merged or split?
1DiarisationReviewercompare channel / active-speaker data (reply)
2ReviewerSpeaker mapis S2 the right participant?
2Speaker mapReviewercheck S2 -> participant name (reply)
3ReviewerASRname or pronoun misrecognised?
3ASRReviewercheck name / pronoun (reply)
4ReviewerLLMA's 'I'll send it over' -> B?
4LLMReviewerowner = speaker of committing utterance (reply)
5LLMDeterministic checkowner + evidence
6Deterministic checkDeterministic checkowner = speaker?

Source: This page's text

The summary assigns an action to the wrong speaker — where did it go wrong? Follow the evidence timestamps on the action item and check each stage. (1) Diarisation: were two voices merged or one split? Compare with channel or platform active-speaker data. (2) Speaker mapping: is S2 linked to the wrong participant name? (3) ASR: was a name or pronoun misrecognised? (4) LLM attribution: “I’ll send it over” said by A in reply to B’s request is attributed to B. Fixes per stage: dual-channel audio for calls, platform speaker metadata, second-pass diarisation, a prompt requiring the owner to be the speaker of the committing utterance, and a deterministic check that the owner matches the cited utterance’s speaker unless delegation is explicit; otherwise show “owner unclear”.

Evaluating summaries across 20 languages. Build per-language sets of consented real calls (~50 each), annotated by native speakers with key points and action items. Score faithfulness via claim-level entailment against the transcript with a multilingual judge, coverage as key-point recall, and action-item precision, recall and owner accuracy. Calibrate the judge per language against native annotators; where agreement is weak, rely on humans for that language. Translating to English for judging is a cross-check only, since translation adds errors.

Trade-offs

  • Latency vs accuracy (lookahead context): more right context lowers WER but delays finals; expose a max_delay knob and default per use case (captions 1 s, agent assist 0.7 s).
  • Partial stability vs speed: early partials flicker; only commit a stable prefix and update the tail, measuring partial-to-final edit rate.
  • Summarise from partial vs final transcript: streaming transcripts are worse; run a fast second pass on the full audio, then summarise. For long meetings, maintain rolling section summaries during the call and finalise after.
  • Per-customer custom models vs one model: vocabulary biasing and prompt-level glossaries cover most needs; fine-tuned models only for large on-prem customers with distinct domains, since each one multiplies evaluation and maintenance.

Evaluation

  • Separate real-time and post-call SLOs: partial latency, final latency p95 and time-to-summary p95 < 60 s, tracked separately, including the :00 burst.
  • Explicit ASR and diarisation metrics: WER by language, domain and accent; entity error rate for numbers, names and amounts; diarisation error rate (DER) and speaker-attributed WER; language-ID accuracy on code-switched audio.
  • Grounded summaries with timestamps: every item must cite evidence; unsupported-item rate measured by entailment checks and sampled human review; action-item F1 and owner accuracy.
  • Privacy and redaction: PII recall on labelled calls (missed PII per 1,000 calls), retention and deletion enforcement audits, region pinning checks.
  • Online: user edits to summaries and action items, CRM push success, customer error reports, cost per audio hour; drift by tenant and language triggers re-evaluation.

What a strong design shows

  • Separates the real-time path from the post-call path, each with its own latency target and capacity plan (including the on-the-hour burst).
  • Uses concrete speech metrics — WER by slice, entity accuracy, DER, speaker-attributed WER — rather than “accuracy”.
  • Grounds every summary item in timestamps and checks owner attribution deterministically.
  • Designs for privacy: redaction, per-tenant retention, regional processing and an on-prem option.
  • Can debug a wrong-owner error stage by stage.

Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.