IBM Research Indic Voice Agent with CUGA
Overview
IBM Research has developed a voice-enabled agent designed to bridge the gap between English-language knowledge bases and users who prefer to communicate in regional languages. By leveraging the ConfigUrable Generalist Agent (CUGA) harness, this system allows users to ask questions in languages such as Hindi, Tamil, Telugu, Gujarati, and Marathi, receiving accurate, grounded responses based on specific source documents.
The Technical Architecture
CUGA serves as the central "text-in, text-out" brain of the system. The voice functionality is implemented as thin layers surrounding this core, allowing for modularity in speech-to-text (STT) and text-to-speech (TTS) providers. The pipeline follows this flow:
- Audio Input: Captured from the user.
- Speech-to-Text: Converts audio to text using either Sarvam AI cloud APIs or open-source models like SraVaani.
- Knowledge Retrieval: The system performs a semantic search against an English-language knowledge base.
- CUGA Reasoning: The agent generates a grounded response based solely on the retrieved text.
- Text-to-Speech: Converts the response to audio using Svara or other providers.
This architecture allows developers to swap speech providers or LLM backends (such as watsonx or OpenAI) without modifying the core agent logic.
Solving Cross-Lingual Retrieval
The primary technical challenge in building this agent was cross-lingual retrieval—ensuring that a query in a regional language successfully retrieves relevant English-language passages. The team identified that standard English-only embedding models fail to map non-English queries to the correct English vector space. To resolve this, they implemented the intfloat/multilingual-e5-large embedding model, which ensures that queries and documents with the same semantic meaning land in the same vector space regardless of language.
Implementation Best Practices
- Ear-Friendly Formatting: The system strips Markdown, bullet points, and citation tags before the text is sent to the TTS engine to ensure natural-sounding speech.
- Efficient Guardrails: To maintain low latency, the agent uses simple input checks to filter off-topic queries. If an off-topic query bypasses these checks, the model triggers a pre-defined
OFF_TOPICresponse, avoiding the cost of a second LLM call. - Grounded Responses: The agent is strictly constrained to use only the provided source material, and the application displays the specific source pages to the user to maintain transparency.
- Data Privacy: By utilizing client-side API calls for speech services, the system ensures that sensitive user keys are not exposed to the server.
Scaling for Indian Ecosystems
This agent architecture is designed to be integrated with IBM Bharat Core, a stack optimized for the Indian ecosystem. By combining CUGA’s flexible agent harness with Bharat Core’s localized connectors and fine-tuned models, developers can build secure, sovereign AI applications—such as vernacular KYC systems or government information bots—that comply with local data requirements while serving diverse linguistic populations.
Sources
- OriginalAn Indic Voice Agent with CUGA