Delivered remotely for a business based in Zurich, Switzerland. Names withheld by agreement.
Project Overview
Important architectural debates, customer escalations, and project commitments happen verbally every day, yet standard video-conferencing recordings become dark data the moment a call ends. Teams either waste manual effort typing fragmented notes or paste raw transcripts into unvetted tools that strip away speaker attribution, leak sensitive context across departments, and fabricate confident-sounding action items.
We architected a privacy-first enterprise meeting summarizer using Python, Whisper, and Next.js. Designed for multi-tenant organizations with strict data governance requirements, the platform transcribes multi-speaker recordings with acoustic diarization, extracts citation-linked decisions and follow-ups, and powers permission-aware search across an organization's collective meeting history.
Enterprise Transcription & Trust Hurdles
Moving speech-to-text from prototype scripts into regulated corporate environments surfaced four stubborn failure modes:
- Whisper silence hallucinations: Feeding raw, unsegmented meeting tracks directly into Whisper triggers phantom phrases during screen-sharing pauses, keyboard typing, or muted intervals.
- Speaker attribution ambiguity: Word-level text without reliable diarization turns fast-paced technical debates into unreadable walls of text where ownership of action items disappears.
- Ungrounded summary fabrication: Standard single-prompt summaries blur hypothetical brainstorms with committed decisions and offer no quick way to audit source wording.
- Permission leakage in vector search: Indexing meeting transcripts in a shared vector store without granular row-level access controls risks exposing restricted leadership or client discussions to unauthorized staff.
Architectural Strategy
We treated transcription and intelligence extraction as a verifiable evidence pipeline anchored in PostgreSQL. Every uploaded audio or video recording first enters a deterministic Python pre-processing stage that extracts normalized mono PCM streams, detects speech intervals via Voice Activity Detection, and processes speech segments in parallel across Whisper workers while an independent diarization pass clusters vocal turns.
Transcript turns receive immutable utterance IDs and millisecond offsets stored in PostgreSQL alongside pgvector embeddings. Downstream LLM summarization operates strictly over those indexed utterances, returning structured JSON records tied back to exact citation ranges that the Next.js workspace renders alongside synchronized media playback.
Core Capabilities
- VAD-Gated Whisper Transcription: High-accuracy multilingual speech recognition paired with custom domain vocabularies for product acronyms and technical terminology.
- Interactive Speaker Diarization: Automated turn clustering with one-click speaker remapping in Next.js and optional PII masking for emails, phone numbers, and financial identifiers.
- Citation-Verified Summaries: Role-specific templates (engineering syncs, discovery calls, incident retrospectives) where every decision and task links directly to its exact transcript quote and timestamp.
- RBAC-Scoped Semantic Search: Natural-language Q&A across past meetings filtered natively by PostgreSQL workspace, channel, and participant permissions.
- Automated Ingestion & Exports: Calendar-linked recording webhooks and structured pushes into issue trackers and documentation wikis.
Technical Architecture
Meeting recordings arrive either via direct multipart uploads in Next.js or automated webhook pulls triggered by conferencing integrations into FastAPI. Redis dispatches jobs to GPU transcription pods running batched Whisper decoding alongside diarization clustering. Once aligned utterances persist to PostgreSQL, asynchronous workers compute pgvector chunk embeddings and execute map-reduce summarization, notifying the Next.js client via WebSockets as sections complete.
Flow: Next.js Workspace / Conferencing Webhook → FastAPI Ingestion (PostgreSQL ACLs) → Redis Job Queue → Python VAD + Batched Whisper & Diarization Workers → Map-Reduce Citation Synthesizer → PostgreSQL + pgvector Store → Next.js Synchronized Player
Keeping vector embeddings and relational permissions inside a single PostgreSQL cluster eliminates synchronization lag between access revocation and search visibility. When an employee leaves a private project, search results reflect the change on the very next query.
Technology Stack
| Category | Technology detail |
|---|---|
| Web Workspace | Next.js (App Router, TypeScript, synchronized audio-transcript player) |
| Backend API | Python and FastAPI handling uploads, calendar webhooks, and search queries |
| Speech Recognition | Whisper (batched GPU inference with VAD segmentation and word timestamps) |
| Speaker Diarization | PyTorch acoustic embedding clustering aligned with attendee rosters |
| Summarization Engine | Map-reduce LLM pipeline producing schema-validated decisions and citations |
| Primary & Vector DB | PostgreSQL with pgvector storing transcripts, embeddings, and ACL tables |
| Task Queue & Cache | Redis orchestrating transcription jobs, chunk states, and rate controls |
| Media Storage | Encrypted object storage with tenant-configurable audio retention TTLs |
Engineering Trade-offs & Solutions
| Engineering Challenge | Solution & Trade-off |
|---|---|
| Eliminating Whisper hallucinations without losing soft-spoken interjections | Paired energy-and-neural VAD segmentation with tuned padding collars and log-probability filters; requires careful threshold calibration on poor microphones while keeping transcripts clean. |
| Scaling semantic search without duplicating ACL logic in a separate vector DB | Stored embeddings in PostgreSQL pgvector with relational permission joins instead of an external vector service; trades dedicated distributed index scale for atomic ACL consistency and simpler operations. |
| Summarizing multi-hour workshops past single-pass context limits | Built a chunked map-reduce pipeline referencing stable utterance IDs rather than truncating transcripts; increases LLM token usage slightly while guaranteeing full-meeting coverage. |
| Keeping long synchronized transcripts responsive in Next.js | Virtualized utterance lists and streamed waveform peaks independently of full audio files; adds client windowing state while ensuring smooth scrolling across multi-hour calls. |
Security & Reliability
Enterprise audio captures sensitive roadmap discussions and customer disclosures, demanding tight lifecycle guarantees. Audio streams encrypt during transit and land in tenant-scoped object storage buckets with configurable retention policies—allowing compliance teams to auto-delete raw media files immediately after transcription or retain encrypted archives under strict audit controls.
Before summarization or indexing runs, configurable Python NER and regex redactors scrub credit cards, tokens, or regulated personal identifiers from stored utterance text. FastAPI enforces SSO-backed workspace roles, while PostgreSQL query policies guarantee search and summary endpoints never cross tenant or private-meeting boundaries.
Performance & Scale
Processing bursts of recordings immediately after top-of-the-hour corporate meetings requires careful GPU utilization. Rather than running Whisper sequentially on single files, workers batch VAD-sliced speech chunks across parallel streams, keeping GPU compute saturated even on sparse conversational audio with frequent pauses.
On the web tier, Next.js server components render initial meeting metadata cleanly while deferring heavy transcript virtualization and semantic search drawers until hydrated, backed by Redis-cached participant directories and pre-computed waveform JSON files.
Operational Outcomes
Replacing manual note-taking and disconnected transcription scripts with a unified Python, Whisper, and Next.js platform delivered measurable clarity across engineering and client-facing workflows:
- Auditable institutional memory: Teams verify the exact spoken context behind every summarized decision via instant timestamped audio playback.
- Confidentiality by default: Native PostgreSQL permission scoping lets organizations index cross-functional knowledge without risking accidental data exposure across teams.
- Clean, readable multi-speaker records: VAD filtering and acoustic diarization turn noisy hybrid conference calls into structured, attribution-accurate dialogue.
- Flexible compliance posture: Automated PII masking and configurable audio purge policies align cleanly with strict European corporate governance standards.