How coss-india/voicera works
VoicEra is self-hosted infrastructure for real-time voice agents, with a dashboard/API control plane and a separate live-call runtime. Operators configure agents and campaigns; calls enter through browser or carrier telephony, then the runtime coordinates speech recognition, language-model responses, and speech synthesis. The repository also includes knowledge ingestion, asynchronous campaign work, provider adapters, and an optional self-hosted model gateway. Edges follow the README architecture or explicit source references in the supplied index; unsampled implementation details are not inferred.
Main entry points: main.py Control API · pipeline.py Voice runtime · application.py Carrier adapters · page.tsx Operator dashboard
Components 22
Control plane
- Operator dashboard
frontend/src/app/(app)/dashboard/page.tsx - Control API
apps/api/app/main.py - Agent configuration
apps/api/app/services/agent_service.py - Campaign orchestration
apps/api/app/services/campaign/campaign_orchestrator.py - Knowledge management
apps/api/app/services/knowledge_service.py
Voice execution
- Voice runtime
apps/runtime/services/pipecat/pipeline.py - Call entry routes
apps/runtime/routes/telephony.py - Browser calling
frontend/src/components/call/BrowserCallSession.tsx - AI service selection
apps/runtime/services/ai_service_factory.py
Provider integrations
- Telephony integrations
apps/telephony/base.py - Carrier adapters
apps/telephony/providers/plivo/application.py - AI provider registry
apps/providers/registry.py - Speech and LLM adapters
apps/providers/adapters/bhashini/service.py
Data and jobs
- PDF ingestion
apps/api/app/rag/ingest_pipeline.py - Knowledge vectors
apps/api/app/rag/chroma_store.py - Application database
apps/api/app/database.py - Object storage
apps/runtime/services/storage/object_storage.py - Campaign workers
apps/api/app/tasks/campaign_tasks.py
Model serving
- Model gateway
model-server/gateway/app/main.py - Self-hosted models
model-server/stt/indic-transcribe/core_engine.py
Other components
- Operator
- Caller
Connections 22
- Operator → Operator dashboard: uses
README.md - Operator dashboard → Control API: calls
README.md - Control API → Agent configuration: configures
- Control API → Campaign orchestration: orchestrates
- Control API → Knowledge management: manages
- Knowledge management → PDF ingestion: ingests documents
- PDF ingestion → Knowledge vectors: upserts vectors
apps/api/app/rag/ingest_pipeline.py - Control API → Application database: reads and writes
apps/api/app/main.py - Control API → Object storage: stores artifacts
- Control API → Campaign workers: dispatches jobs
README.md - Caller → Carrier adapters: calls through
README.md - Carrier adapters → Call entry routes: streams audio
README.md - Browser calling → Voice runtime: connects
- Call entry routes → Voice runtime: routes calls
- Control API → Voice runtime: configures
README.md - Voice runtime → AI service selection: builds services
apps/runtime/services/pipecat/pipeline.py - AI service selection → AI provider registry: selects providers
apps/runtime/services/ai_service_factory.py - AI provider registry → Speech and LLM adapters: registers adapters
apps/providers/adapters/bhashini/service.py - Voice runtime → Carrier adapters: exchanges audio
README.md - Voice runtime → Object storage: stores call media
README.md - Speech and LLM adapters → Model gateway: may call
- Model gateway → Self-hosted models: proxies inference
model-server/gateway/app/main.py