HomeCase studiesPrivacy-First Enterprise AI Meeting Intelligence and Diarization...

Case study · Zurich, Switzerland

Privacy-First Enterprise AI Meeting Intelligence and Diarization Platform

Enterprise Collaboration & Productivity

Distributed organizations lose critical engineering decisions and client commitments inside unsearchable hours of recorded calls. We engineered an enterprise meeting intelligence platform built with Python, Whisper, Next.js, FastAPI, PostgreSQL, pgvector, and Redis. The system pairs batched Whisper transcription and acoustic speaker diarization with citation-grounded summarization, role-scoped semantic search, and configurable PII redaction.

Industry
Enterprise Collaboration & Productivity
Solution
A web and API meeting intelligence platform leveraging Python, Whisper, and Next.js to deliver speaker-diarized transcripts, verified action items, and permission-aware knowledge search.
Platforms
Web & API
Stack
Python · Whisper · Next.js · FastAPI · PostgreSQL · pgvector
Location
Zurich, Switzerland · delivered remotely
Role
Engineering, with the team behind for mobile and QA

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.

01 — Questions

asked about this kind of project

How do you prevent Whisper from hallucinating repeated text during long periods of silence or background noise?

Every incoming recording passes through a Voice Activity Detection (VAD) stage first, slicing audio strictly around active speech boundaries before Whisper decodes each segment. Additional compression-ratio and log-probability thresholds catch and discard degenerate decoding loops.

How does the system label who said what when multiple participants share a single mixed audio track?

A Python diarization stage extracts sliding-window speaker embeddings, clusters vocal turns, and aligns turn boundaries with Whisper word-level timestamps. Calendar invite rosters help seed human-friendly speaker suggestions that editors can bulk-reassign in Next.js.

How do you ensure AI-generated summaries never invent commitments or attribute tasks to the wrong person?

Summarization prompts enforce strict structured JSON outputs where every extracted decision, risk, or action item must reference exact utterance IDs from the transcript. Next.js renders clickable timestamp badges next to each bullet so readers verify source audio instantly.

How does semantic search enforce meeting confidentiality across departments?

Every transcript chunk embedding in pgvector carries organization, team, and participant ACL metadata. Vector similarity queries execute inside filtered PostgreSQL joins so employees never surface excerpts from confidential HR, legal, or executive calls they lack permission to view.

What happens when a two-hour all-hands recording exceeds a language model's prompt window?

Long transcripts automatically split along topic and time boundaries into overlapping chunks. A map step extracts structured facts per segment, and a reduce step synthesizes the executive brief while preserving original utterance citations.

Can security-conscious organizations delete raw audio immediately after transcription completes?

Yes. Workspace retention policies in PostgreSQL allow administrators to purge raw audio blobs right after transcript verification while retaining redacted text summaries, or retain encrypted audio for configurable compliance windows.

03 — Similar project?

describe what is different about yours

Build yours.

Tell me what exists, what you need and the deadline. Fixed price for a defined scope, or $55/day (8–9 hours work) with a written plan first.

Solitaire Corporate Park, Makarba, Ahmedabad, Gujarat 380015, India · IST (UTC+5:30) · --:-- IST · Mon–Fri 09:00–18:00 IST · US & EU overlap daily

No newsletter, no CRM. Just a reply.