Indic Voice Agent: Build Multilingual AI with CUGA14 min read2,710 words

Indic Voice Agent: Build Multilingual AI with CUGA

See how CUGA combines speech, multilingual search and grounded answers to build Indic voice agents—and what to test before deploying one in production.

Indic voice agentCUGA agentmultilingual AIcross-lingual retrievalvoice assistant
Indic Voice Agent: Build Multilingual AI with CUGA

How to Build a Multilingual Voice Agent with CUGA

Most digital information is written in text, and a lot of it starts as English. But the people who actually need it may be more comfortable asking out loud - in Hindi, Tamil, Telugu, Gujarati, or Marathi. So you can't solve this by bolting speech recognition onto a chatbot. The system also has to pull the right information across languages, answer in a way the user can follow, and behave reliably in the real environment where it will be used.

An IBM Research example built with CUGA is a practical way to think about the whole problem. It combines speech-to-text and text-to-speech with a text-based agent and a knowledge search tool. The prototype focuses on agricultural questions, like how to tell good seed from bad. The overall architecture is straightforward, but the implementation reveals the real challenge: a fluent-sounding answer doesn't matter if the search layer can't connect a Hindi question to the right English material.

This article walks through the system components, why multilingual retrieval matters more than prompt tuning, and how to evaluate the design before you turn it from a demo into a service. It also looks at where this pattern can pay off - from public information to enterprise support - and what changes when privacy, accuracy, and operational scale become non-negotiable.

Why build an Indic voice agent around CUGA?

A voice interface can make digital information easier to reach when typing is inconvenient, literacy varies, or people naturally think and speak in a language that a text-only system doesn't handle well. That's not just a "convenience" upgrade. It can decide whether someone can use a service at all.

In this example, CUGA - IBM Research's open-source agent harness - acts as the reasoning and orchestration layer. Instead of building an agent loop from scratch, developers configure the model, tools, state, and guardrails, then connect the agent to a use case. Here, the agent gets access to a knowledge search function plus a prompt that keeps it focused on agricultural questions.

This split of responsibilities is helpful. The application owns the interface and the speech workflow. CUGA handles the agent's interaction with the model and tools. The knowledge source provides the information the answer is supposed to rely on. Each piece can be tested and adjusted without turning the whole system into one tightly coupled blob.

The farming scenario also makes the product boundary clear. A user might ask about identifying good seed, but if they ask something about cricket or coding, the assistant should redirect them politely instead of improvising. It isn't meant to be a general-purpose conversational companion. Its job is to help with a specific task, using a specific information source.

That distinction matters when you deploy. A broad chatbot can look impressive in a demo, but it's harder to evaluate and easier to "stretch" beyond what it actually knows. A focused assistant gives teams a cleaner test plan: Does it understand the question? Did it retrieve something relevant? Is the answer supported by that content? And does it refuse or redirect when the request is outside scope?

The practical value of CUGA here isn't that it magically removes hard problems. It gives product teams a reusable agent framework, so they can focus on the domain tools, the language coverage, and the user experience that determine whether the assistant works for the people it's meant for.

How does the voice-to-answer architecture work?

The core design treats CUGA as a text-in, text-out system. Voice sits on the outside in two layers: speech recognition converts the user's audio into text, and speech synthesis turns the agent's response back into audio.

The flow is:

Audio input → speech-to-text → knowledge search → CUGA response → text-to-speech → audio output

This separation keeps the agent's reasoning independent of the speech provider. You can develop and test the knowledge interaction with typed text first. Then you add voice once retrieval and response behavior are already working. If the speech provider changes later, the agent prompt and tool logic don't automatically need to be rewritten.

The IBM Research example describes two speech options. One uses Sarvam AI's cloud speech APIs, called from the user's browser. The other runs open-source speech models on a server: SraVaani for speech-to-text and Svara for text-to-speech. Neither approach is automatically "better." A cloud service may be easier and faster to integrate, while self-hosting can give you more control over infrastructure and data handling. But real latency, cost, supported languages, and quality have to be measured for your target users and deployment environment.

You can implement it in stages, which makes debugging much more manageable:

  1. Start with the knowledge tool. Confirm that typed questions retrieve the expected material and that answers stay grounded in it.
  2. Add the agent boundary. Define what's in scope, what happens for unsupported requests, and how the model should use retrieved passages.
  3. Integrate speech recognition. Review the transcription closely, especially for regional vocabulary, names, and code-switching between languages.
  4. Add speech synthesis. Check whether spoken responses are clear at realistic lengths and sound right in the relevant language or dialect.
  5. Measure the complete interaction. A good written answer isn't enough if transcription errors or long delays make the voice experience unusable.

This order isolates failure modes. If a spoken question produces a bad answer, teams can compare the audio, transcript, retrieved passages, and final response rather than guessing which component broke. And that observability matters even more with voice: users may only hear a confident response, not the text or the source material behind it.

Why is multilingual retrieval the hardest part?

Speech recognition is at least visible: the system either transcribes the question well or it doesn't. Retrieval failures are sneakier. The search tool can return something, the agent can follow instructions, and the final answer may still sound careful - while the passages it used are simply the wrong ones.

That gap shows up when the question and the documents aren't in the same language. In the example, a Hindi question has to retrieve useful content from English source material. Semantic search often turns text into vectors and ranks documents by how close their vectors are to the query. If the embedding model is built mainly for English and doesn't represent Hindi meaningfully, the "nearest" results may not actually match what the user asked.

At that point, the agent might say the handbook doesn't cover the topic. The response can sound reasonable because the system is told to answer only from retrieved evidence. But the real problem happened earlier: the evidence retrieval step didn't surface the right content. There may be no obvious error or warning to alert the team.

The described implementation tackles this using a multilingual embedding model, intfloat/multilingual-e5-large. A multilingual model is meant to place semantically similar text closer together across supported languages. In practice, it can let a Hindi query retrieve a relevant English paragraph without requiring a separately translated copy of every document.

Still, it's not a guarantee. Coverage varies, and performance can differ across scripts, dialects, technical terms, and mixed-language queries. You'll need representative tests - and for high-impact use cases, a way to review what the system actually retrieves.

A useful retrieval test set should include:

  • Questions in each language and script you plan to support.
  • Different ways of asking the same question, including colloquial phrasing.
  • Queries with domain vocabulary, local names, and spelling variations.
  • Questions that are answered in the source documents, plus questions that aren't.
  • Expected source passages, so you can judge retrieval quality separately from the generated answer.

Test retrieval before tuning the prompt. If the right evidence isn't being found, even a more detailed instruction won't reliably make the model use it. Prompts can shape how the agent handles evidence; they can't recover a passage the search layer never returned.

What design choices make the assistant safer and more useful?

A useful voice agent isn't just a pipeline that produces speech. It needs a clear scope, predictable behavior when users wander outside that scope, and a way to connect answers to information that can be checked.

The farming example handles out-of-scope requests with an explicit boundary. CUGA can return an OFF_TOPIC result, and then the application provides a polite redirect. The design avoids a second model call just to generate that redirect. That keeps the path simpler, can reduce latency, and makes the response consistent instead of letting a separate generation step "invent" wording.

This approach works when redirects are straightforward and when the unsupported request categories are clear. It's less appropriate when intent is ambiguous or when the application needs to ask a clarifying question. In those situations, a hard redirect can frustrate users who are still trying to ask something supported. The boundary should be tested against realistic conversations, not only obvious off-topic prompts.

Grounding is another design choice with real consequences. The agent should answer from retrieved material, and teams should verify that the response actually matches what's in that material. In domains like agriculture, health, or legal guidance, a confident-sounding answer that isn't supported can influence real decisions. A generic disclaimer doesn't fix poor retrieval or unclear source content.

A production evaluation should cover at least four stages:

  • Speech input: Is the user's question transcribed correctly, including names and regional terms?
  • Retrieval: Does the search return the right source passages for that question?
  • Response: Does the agent answer only what the evidence supports, and handle uncertainty appropriately?
  • Interaction: Is the spoken response understandable, timely, and easy to recover from when something goes wrong?

When possible, keep the transcript, retrieved passages, and response available for authorized review. That helps teams diagnose issues and improve the system. But logging also creates obligations: voice data and transcripts can include personal or sensitive information. You need to define what's stored, for how long, who can access it, and whether users should be informed or asked for consent. What counts as "right" depends on the service, jurisdiction, and deployment context.

A small prototype can also make the system's limits easier for users to understand. A clear indication that the assistant is focused on a specific subject, a way to repeat or correct a transcription, and a concise spoken answer are product choices - not polish. They reduce the odds that users assume a narrow assistant is an authority on every topic.

Where can this pattern create business value, and what are its limits?

This architecture isn't limited to farming. The knowledge source could be scheme documents, health advisories, legal guides, or internal enterprise material. The general pattern stays the same: you define a set of information, you handle questions in the languages users prefer, and you keep answers close to the source.

For business and public-service teams, the value can be straightforward: make existing information easier to access through an interface that doesn't require people to search through long documents. That can matter when people don't navigate well through dense content, when the service is used on a phone, or when text-first browsing is a barrier. But you shouldn't assume a voice agent automatically reduces support costs or improves outcomes. Those are hypotheses to validate against a baseline - things like completion rates, repeat contacts, time to find an answer, and user-reported comprehension.

The speech-provider decision also affects how you operate. Cloud APIs can simplify deployment and are often attractive when speed matters. Running open-source models on your own infrastructure may help with requirements around data handling or network access - but it shifts responsibility to your team. Model serving, capacity planning, updates, monitoring, and reliability all become part of the job.

The source also points to IBM Bharat Core, described as an optimized AI stack built on IBM Sovereign Core for Indic workloads on local infrastructure. In a scaled deployment, an infrastructure and model stack like this may matter when sovereignty and local operation are required. It still doesn't eliminate the need to assess compliance, security, language quality, and system performance for the specific application.

Before you move from prototype to service, make a deployment decision across several dimensions:

Decision What to evaluate
Language coverage Which languages, scripts, dialects, and mixed-language inputs are actually supported?
Evidence quality Can users or operators tell what source material informed an answer?
Data handling Where do audio, transcripts, and documents go, and what is retained?
Operations Who monitors speech, retrieval, and model failures - and how are updates tested?
User impact Can people correct misunderstandings or move to another channel when the agent fails?
Cost and latency What does a full interaction cost, and how long does it take under realistic demand?

The central trade-off is control versus operational workload. Hosted services can reduce the burden of running every component. On-premises or locally controlled deployments can give an organization more say over where processing happens. Neither option automatically guarantees better security, accuracy, or cost. Those outcomes depend on the implementation and the evidence - not just the deployment label.

Conclusion

The CUGA example shows that building a multilingual voice assistant is a systems problem, not just a speech-integration task. Speech recognition and synthesis make the experience conversational, but the assistant only becomes useful when it can retrieve the right evidence across languages, stay within scope, and respond clearly when it can't help.

Start with a text-based agent and a measurable retrieval test set. Add voice once the knowledge path works, then evaluate the full interaction with real language variation and deployment constraints. If the use case touches important decisions, build in source review, data governance, and an escalation route from the beginning. That's the difference between a compelling demo and a service people can actually rely on.

Frequently Asked Questions

CUGA, or Configurable Generalist Agent, is an open-source agent harness from IBM Research. It provides a framework for configuring model connections, tools, state and guardrails. Developers can build an application around it rather than writing every part of an agent loop themselves.
Speech-to-text first converts a spoken question into text. A multilingual retrieval model then helps match the query to relevant knowledge, even when the documents are in another language. The agent forms a grounded text answer, and text-to-speech turns that answer into audio.
An English-only embedding model may not represent a Hindi or Tamil query in a way that aligns with relevant English documents. A multilingual embedding model is designed to support semantic matching across languages. Teams still need to test retrieval quality for their actual languages and subject matter.
Yes. The knowledge source and agent scope can be changed for areas such as public-service schemes, health advisories, legal information or enterprise support. Each new domain needs its own evaluation, source-quality checks and safeguards; changing the documents alone does not validate the assistant.
It depends on requirements. Cloud APIs can be quicker to integrate, while self-hosted models may provide more control over infrastructure and data flows. Compare language quality, latency, cost, data governance and operational capacity using realistic workloads before choosing.

Related articles