# ๐ŸŽ™๏ธ VoicEra **Open-source infrastructure for self-hosted, real-time voice AI.** Build telephony agents in Indian languages โ€” with **your infrastructure, your data, and your choice of models and carriers.**
[![Apache 2.0 License](https://img.shields.io/badge/license-Apache%202.0-111827?style=flat-square)](LICENSE) [![Python](https://img.shields.io/badge/python-3.10%2B-111827?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/) [![Docker](https://img.shields.io/badge/docker-ready-111827?style=flat-square&logo=docker&logoColor=white)](docker-compose.yaml) [![Docs](https://img.shields.io/badge/docs-read-111827?style=flat-square)](https://voicera.mintlify.app/docs/guides) [![Contributions](https://img.shields.io/badge/contributions-welcome-111827?style=flat-square)](CONTRIBUTING.md)
**[Quick Start](#quick-start)**   ยท   **[Architecture](#architecture)**   ยท   **[Low-Resource Languages](#built-for-low-resource-languages)**   ยท   **[Contributing](#contributing)**
## Why VoicEra? Voice AI is increasingly powerful, but production deployments can create lock-in around **models, telephony, data, and infrastructure**. VoicEra is an open infrastructure layer that puts those choices back with the operator. - **Self-hosted by design** โ€” run the platform on infrastructure you control. - **Provider neutral** โ€” swap STT, TTS, LLM, and telephony providers without rewriting the platform. - **Data ownership** โ€” call media, transcripts, and recordings stay in your infrastructure. - **Public-good friendly** โ€” Apache 2.0 licensed, transparent, forkable, and deployable without a VoicEra-managed service. - **Composable** โ€” use cloud APIs, local models, or a mix of both. > **VoicEra is platform you own, not another AI vendor.** ## Quick start > **Prerequisite:** Docker must be installed and running before you start. Launch Docker Desktop (or your Docker daemon) first โ€” the script fails if it can't reach the Docker daemon. ```bash git clone https://github.com/COSS-India/VoicEra.git cd VoicEra ./scripts/start-application-services.sh $(ARGS) ``` `./scripts/start-application-services.sh $(ARGS)` creates the environment, generates required secrets, and starts the stack. Once running: | Service | URL | |---|---| | Dashboard | `http://localhost:3000` | | API | `http://localhost:8000` | | OpenAPI | `http://localhost:8000/docs` | | Runtime | `http://localhost:7860` | | MinIO | `http://localhost:9001` | | FerretDB | `http://localhost:27018` | ```bash ./scripts/stop-application-services.sh $(ARGS) ``` See the [documentation](https://voicera.mintlify.app/docs/guides) for production deployment and configuration. You bring the models and telephony account. VoicEra connects them into a deployable system. ## Architecture ```mermaid flowchart LR C["Caller"] <--> T["Telephony
Vobiz ยท Plivo"] T -->|"audio"| R["Voice Runtime
Pipecat"] R <--> P["AI Providers
STT ยท LLM ยท TTS"] U["Operator"] --> D["Dashboard"] D --> A["API"] A --> R A --> DB[("FerretDB
PostgreSQL")] A --> S[("MinIO
Media & artifacts")] A --> Q[("Redis")] Q --> W["Workers"] R --> S W --> DB ``` The platform separates **control plane** from **real-time execution**: - **API** โ€” agents, configuration, campaigns, authentication, and orchestration. - **Runtime** โ€” live call audio and model interaction. - **Dashboard** โ€” operator interface. - **Workers** โ€” asynchronous jobs and campaign execution. - **Storage** โ€” self-hosted database, object storage, and queue. - **Providers** โ€” interchangeable AI and telephony integrations. [Read the architecture guide โ†’](https://voicera.mintlify.app/docs/guides/concepts/architecture) ## Designed for digital public infrastructure VoicEra follows principles that matter for Digital Public Goods: | Principle | VoicEra | |---|---| | **Open source** | Apache 2.0-licensed source code | | **Self-hostable** | Deploy on infrastructure you control | | **Interoperable** | Provider registries and defined integration contracts | | **No platform lock-in** | Swap model and telephony providers | | **Data sovereignty** | Operators control call data and storage | | **Reusable** | API-driven components and provider adapters | | **Inclusive** | First-class support for Indian languages and low-resource deployments | | **Transparent** | Public source, documentation, and contribution process | VoicEra is intended to be **reused, adapted, and independently operated** โ€” including by governments, NGOs, public-interest organisations, and other open-source projects. ## Extending VoicEra Integrations live behind stable interfaces, so adding a provider should not require changing the core runtime. ### Add an AI provider Create a provider under: ```text apps/providers/{cloud,adapters,local}/ ``` STT, TTS, and LLM providers register through the provider registry. [Add an AI provider โ†’](https://voicera.mintlify.app/docs/developer/guides/adding-a-provider) ### Add a telephony provider Implement the telephony contract under: ```text apps/telephony/providers/ ``` Existing Vobiz and Plivo integrations provide reference implementations. [Add a telephony provider โ†’](https://voicera.mintlify.app/docs/developer/guides/adding-a-telephony-provider) ### Run models locally Use the optional model server to expose self-hosted STT, TTS, or LLMs through a common gateway. ```text Agent โ†“ VoicEra โ†“ Model Server โ”œโ”€โ”€ STT โ”œโ”€โ”€ TTS โ””โ”€โ”€ LLM ``` ## Built for low-resource languages VoicEra is designed to make voice AI more accessible for **low-resource and underserved languages** โ€” where commercial models, tooling, and high-quality training data are often limited. It brings together open and interoperable integrations across speech and language technologies, including: * **Bhashini** โ€” Indian-language STT and TTS * **AI4Bharat** โ€” Indic speech and language models * **Kenpath Vistaar** โ€” LLM support for underserved languages * **Cloud providers** โ€” additional STT, TTS, and LLM options The architecture makes it possible to combine these models, self-host them, or replace them as better language technologies emerge. See the [provider registry](https://voicera.mintlify.app/docs/developer/reference/provider-registry) for the current list. ## Repository ```text VoicEra/ โ”œโ”€โ”€ apps/ โ”‚ โ”œโ”€โ”€ api/ FastAPI control plane โ”‚ โ”œโ”€โ”€ runtime/ Pipecat real-time voice runtime โ”‚ โ”œโ”€โ”€ providers/ STT ยท TTS ยท LLM integrations โ”‚ โ””โ”€โ”€ telephony/ Telephony integrations โ”œโ”€โ”€ frontend/ Next.js dashboard โ”œโ”€โ”€ model-server/ Optional self-hosted model gateway โ”œโ”€โ”€ scripts/ Service lifecycle scripts โ””โ”€โ”€ docs/ Mintlify documentation ``` ## Bring your own infrastructure VoicEra does not provide telephony accounts or AI inference. For a real phone deployment, you need: 1. **STT, TTS, and LLM access** โ€” cloud providers or self-hosted models. 2. **A telephony provider** โ€” currently Vobiz or Plivo. 3. **Infrastructure** to run VoicEra and store your data. For browser-based testing, telephony is not required. ## Documentation - [Getting started](https://voicera.mintlify.app/docs/guides) - [Architecture](https://voicera.mintlify.app/docs/guides/concepts/architecture) - [Provider registry](https://voicera.mintlify.app/docs/developer/reference/provider-registry) - [Environment variables](https://voicera.mintlify.app/docs/developer/reference/environment-variables) - [Model server](https://voicera.mintlify.app/docs/developer/model-server) - [Operator FAQ](https://voicera.mintlify.app/docs/guides/operator/faq) ## Contributing VoicEra is built in the open. ```text Use โ†’ Adapt โ†’ Integrate โ†’ Contribute ``` Before opening a pull request, read [CONTRIBUTING.md](CONTRIBUTING.md). Security issues should be reported privately according to [SECURITY.md](SECURITY.md). ## License VoicEra is released under the [Apache License 2.0](LICENSE).
**Build voice infrastructure. Keep control.**