How yash-kavaiya/call-analysis works
Call Analysis is a self-hosted contact-center intelligence product. Its principal workflow accepts uploaded or imported recordings, converts and transcribes audio, assigns speakers, redacts PII, runs specialized analysis agents, and presents results in a dashboard. The graph also preserves documented production capabilities: optional Celery processing, PostgreSQL persistence, authentication, observability, and the Electron desktop shell. The README notes that the dashboard currently uses JSON storage and in-process jobs; production subsystems exist but some are not wired into its HTTP routes. Unsampled modules and integrations are included only where documented; their internal connections are not inferred.
Main entry points: app.py REST API · runner.py Pipeline runner · tasks.py Background tasks · app.js Interactive dashboard
Components 23
Recording Intake
- Audio imports
src/call_analysis/ingest.py - JSON call store
src/call_analysis/storage.py
Call Analysis
- Pipeline runner
src/call_analysis/pipeline/runner.py - Audio preparation
src/call_analysis/audio/preprocess.py - Speech recognition
src/call_analysis/audio/asr.py - Speaker diarization
src/call_analysis/audio/diarize.py - PII scrubbing
src/call_analysis/pii/scrubber.py - Agent analysis
src/call_analysis/agents/orchestrator.py - NVIDIA NIM client
src/call_analysis/nim_client.py
Application Experience
- REST API
src/call_analysis/api/app.py - Interactive dashboard
src/call_analysis/web/app.js - Call data models
src/call_analysis/models.py
Production Services
- Application settings
src/call_analysis/config.py - JWT and API keys
src/call_analysis/auth.py - Task queue setup
src/call_analysis/celery_app.py - Background tasks
src/call_analysis/tasks.py - Redis utilities
src/call_analysis/redis_client.py - PostgreSQL sessions
src/call_analysis/database.py - Telemetry
src/call_analysis/telemetry.py
Desktop Shell
- Electron main process
electron/main.js - Python backend
src/call_analysis/serve.py
Other components
- Contact-center user
- NVIDIA NIM
Connections 27
- Contact-center user → Interactive dashboard: uses
- Interactive dashboard → REST API: calls
- Contact-center user → REST API: uploads audio
- REST API → Audio imports: requests imports
src/call_analysis/api/app.py - Audio imports → JSON call store: registers audio
- REST API → Pipeline runner: runs analysis
src/call_analysis/api/app.py - Pipeline runner → Audio preparation: prepares audio
src/call_analysis/pipeline/runner.py - Pipeline runner → Speech recognition: transcribes audio
src/call_analysis/pipeline/runner.py - Pipeline runner → Speaker diarization: assigns speakers
src/call_analysis/pipeline/runner.py - Pipeline runner → PII scrubbing: scrubs transcript
src/call_analysis/pipeline/runner.py - Pipeline runner → Agent analysis: runs agents
src/call_analysis/pipeline/runner.py - Agent analysis → NVIDIA NIM client: requests completions
src/call_analysis/agents/orchestrator.py - NVIDIA NIM client → NVIDIA NIM: sends requests
src/call_analysis/nim_client.py - Pipeline runner → JSON call store: persists progress
src/call_analysis/pipeline/runner.py - REST API → JSON call store: reads and writes calls
src/call_analysis/api/app.py - REST API → Call data models: uses call records
src/call_analysis/api/app.py - Contact-center user → JWT and API keys: authenticates
- REST API → Task queue setup: queues jobs
- Task queue setup → Background tasks: registers tasks
src/call_analysis/celery_app.py - Background tasks → Pipeline runner: runs processing
src/call_analysis/tasks.py - Background tasks → PostgreSQL sessions: uses sessions
src/call_analysis/tasks.py - Background tasks → Redis utilities: tracks job status
src/call_analysis/tasks.py - REST API → PostgreSQL sessions: optional persistence
src/call_analysis/api/app.py - REST API → Telemetry: initializes telemetry
src/call_analysis/api/app.py - Application settings → REST API: configures
src/call_analysis/api/app.py - Electron main process → Python backend: spawns backend
- Electron main process → Interactive dashboard: loads dashboard