Building Multilingual Indic Voice Agents with CUGA
IBM Research detailed an open-source voice agent architecture built using CUGA that processes regional Indic queries and retrieves answers from an English knowledge base.
IBM Research detailed a small voice agent built using CUGA (ConfigUrable Generalist Agent) as an open-source agent harness, according to the Hugging Face Blog. The agent processes spoken regional languages such as Hindi, Tamil, Telugu, Gujarati, and Marathi, searches an English agricultural handbook, and replies in two to four spoken sentences in the original language.
How It Works
CUGA operates as a text-in, text-out brain, while voice components function as thin peripheral layers. This design allows developers to build and test the agent using plain text before adding audio layers. The source notes that standard English-only embedding models turn non-English inputs into vectors carrying insufficient meaning, resulting in silent retrieval failures. To fix this, the implementation uses a multilingual embedding model (intfloat/multilingual-e5-large), enabling a single English document source to serve queries across multiple languages without requiring translated copies.
The architecture supports two speech integration methods:
- Cloud APIs: Sarvam AI cloud speech APIs called directly from the user's browser, which keeps user keys off the server.
- Local Models: Open-source models—specifically SraVaani for speech-to-text and Svara for text-to-speech—running on a local server.
According to the source, prototypes can also connect to IBM Bharat Core, an optimized AI stack built on IBM Sovereign Core, to scale into enterprise applications like vernacular KYC systems or government bots.
Why a Developer Might Care
- Reduced Boilerplate: Using CUGA as an embedded SDK handles model wiring, tool management, state, and guardrails, allowing developers to focus on writing custom tools and prompts rather than building an agent loop from scratch.
- Decoupled Voice and Logic: Because the core agent is strictly text-based, developers can prototype rapidly using text interfaces and integrate speech pipelines later. Speech providers can also be altered without rewriting core agent code.
- Simplified Knowledge Bases: Utilizing a multilingual embedding model eliminates the need to translate source documents into every regional language.
Limitations
- Retrieval Discrepancies: Using default English-only embeddings with non-English queries causes incorrect retrieval silently. Without warning or error logs, the model may simply output that the handbook does not cover the topic.
- Formatting Constraints: Standard text outputs such as markdown, bullet points, citation tags, and bracketed translations sound unnatural when processed by text-to-speech engines, requiring prompt constraints and lightweight formatters to strip them out.