How sravannotshravan/meeting-summarizer works
Purpose and entry points
MeetingAI is a local, privacy-oriented meeting-recording processor. It accepts audio/video, produces a speaker-attributed transcript and structured meeting summary, and serves a synchronized playback UI. Runtime entry points are FastAPI (api/main.py), the React client (frontend/src/main.tsx), and Compose (docker-compose.yml).
API orchestration and asynchronous processing
The FastAPI application owns the REST boundary: upload, meeting listing/status, artifact retrieval, audio streaming, and deletion. Upload creates a meeting record and schedules processing through background tasks rather than blocking the request. The API is the only intended bridge between browser state and the AI/storage layers.
Paths: api/main.py, ai/pipeline.py, backend/storage.py.
Meeting persistence and artifact boundary
SQLite stores meeting metadata/status, while the filesystem holds recordings and generated artifacts in per-meeting directories. Storage operations encapsulate CRUD plus artifact reads/writes, allowing API handlers and pipeline stages to coordinate through a meeting ID and persisted files rather than in-memory job state.
Paths: backend/database.py, backend/models.py, backend/storage.py.
AI pipeline stages
The pipeline orchestrates a sequential local workflow: invoke whisper.cpp for timestamped transcription; run pyannote diarization; temporally align transcript segments with detected speakers; then request an LLM-generated structured summary. Each stage produces input for the next, with the persisted raw transcript, speaker transcript, and summary exposed independently by the API.
Paths: ai/pipeline.py, ai/diarization.py, ai/alignment.py.
Local model/service integration
Speech recognition is executed through an installed/containerized whisper-cli and local Whisper model. Diarization uses pyannote and requires a Hugging Face token for its gated model. Summarization delegates to a separately running llama.cpp server hosting Qwen3-8B, so the backend depends on an HTTP LLM-service boundary but no cloud inference API.
Paths: ai/summarizer.py, requirements.txt, .env.example.
Frontend interaction model
The React/Vite client has a dashboard for meeting discovery/upload and a dedicated meeting view that polls/loads status and artifacts through a typed API client. The meeting page combines streamed original audio with timestamped speaker transcript for click-to-seek and synchronized scrolling, alongside the structured summary.
Paths: frontend/src/App.tsx, frontend/src/pages/MeetingPage.tsx, frontend/src/lib/api.ts.
Deployment topology
Docker Compose coordinates frontend, backend/AI dependencies, and llama.cpp. The frontend production image is served by Nginx; the backend image packages Python, Whisper, and pyannote dependencies. Persistent host-mounted model and data directories are architecturally necessary because the SQLite DB, recordings/artifacts, and GGUF model outlive containers.
Paths: docker-compose.yml, Dockerfile.backend, Dockerfile.frontend.
Main entry points: docker-compose.yml Docker Compose deployment · storage.py Meeting storage · main.py FastAPI application · pipeline.py Processing pipeline
Components 17
Browser client
- React dashboard & meeting view · Upload, discovery, playback, transcript synchronization, and summary display.
frontend/src/App.tsx - Meeting playback view · Streams audio and seeks from timestamped speaker transcript.
frontend/src/pages/MeetingPage.tsx - Typed API client
frontend/src/lib/api.ts
Backend & storage
- FastAPI application · Owns upload, meeting status, artifacts, audio streaming, and deletion.
api/main.py - Meeting storage · Coordinates CRUD and per-meeting recording and artifact files.
backend/storage.py - Meeting metadata DB · Stores meeting metadata and processing status.
backend/database.py - Meeting model
backend/models.py - Recordings & artifacts · Per-meeting audio, raw transcript, speaker transcript, and summary.
Local AI pipeline
- Processing pipeline · Runs sequential processing after upload without blocking the request.
ai/pipeline.py - whisper.cpp transcription · Produces timestamped raw transcripts using a local Whisper model.
- Speaker diarization · Detects speaker time ranges using the gated pyannote model.
ai/diarization.py - Transcript-speaker alignment · Associates transcript segments with detected speakers.
ai/alignment.py - Structured summarizer · Requests the meeting summary from the local llama.cpp server.
ai/summarizer.py
Container runtime
- llama.cpp / Qwen3-8B · Separately running HTTP inference service backed by a GGUF model.
- Docker Compose deployment · Runs frontend, backend AI dependencies, and llama.cpp with persistent mounts.
docker-compose.yml - Nginx frontend image
Dockerfile.frontend - Backend AI image · Packages Python, Whisper, and pyannote dependencies.
Dockerfile.backend
Connections 22
- React dashboard & meeting view → Meeting playback view: routes to
- React dashboard & meeting view → Typed API client: uses
- Meeting playback view → Typed API client: loads status and artifacts
- Typed API client → FastAPI application: REST requests
- FastAPI application → Meeting storage: persists and retrieves
- FastAPI application → Processing pipeline: schedules after upload
- Meeting storage → Meeting metadata DB: metadata and status
- Meeting storage → Meeting model: maps records
- Meeting storage → Recordings & artifacts: reads and writes
- Processing pipeline → whisper.cpp transcription: transcribes recording
- whisper.cpp transcription → Speaker diarization: timestamped transcript
- Speaker diarization → Transcript-speaker alignment: speaker intervals
- Transcript-speaker alignment → Structured summarizer: speaker transcript
- Processing pipeline → Meeting storage: persists stage artifacts
- Structured summarizer → llama.cpp / Qwen3-8B: local HTTP inference
- Docker Compose deployment → Nginx frontend image: runs
- Docker Compose deployment → Backend AI image: runs
- Docker Compose deployment → llama.cpp / Qwen3-8B: runs
- Backend AI image → FastAPI application: hosts
- Nginx frontend image → React dashboard & meeting view: serves
- Docker Compose deployment → Recordings & artifacts: persistent host mount
- Docker Compose deployment → Meeting metadata DB: persistent host mount