---
title: "An Indic Voice Agent with CUGA"
description: "A voice agent was built to let farmers ask questions aloud in their own language and get spoken answers grounded in a 154-page English agricultural handbook. The agent uses CUGA, IBM Research’s open-source agent harness, as a text-in, text-out brain with speech-to-text and text-to-speech layers around it. The hardest challenge was cross-lingual retrieval: a Hindi question would retrieve wrong passages because CUGA’s default embedding model is English-only. The fix was to use a multilingual embedding model (intfloat/multilingual-e5-large) so the same meaning lands in the same place regardless of language. The prompt asks the model not to produce Markdown or citation tags, and a light formatter strips any that slip through before speech. Simple input checks catch off-topic questions, and if one gets through the model starts its reply with OFF_TOPIC so the app can swap in a polite redirect without a second LLM call."
---

# An Indic Voice Agent with CUGA

[Hugging Face](https://yomu.fyi/company/hugging-face) · Vrunda Gadesha, Cyril Shaji, Jobit Treesa Varughese, Nivetha Suruliraj, Anu Sugunan, Anupama Murthi, Jaydeep Sen, Amith Singhee · Nov 25, 2026

**Type:** Tutorial

## Summary

A voice agent was built to let farmers ask questions aloud in their own language and get spoken answers grounded in a 154-page English agricultural handbook. The agent uses CUGA, IBM Research’s open-source agent harness, as a text-in, text-out brain with speech-to-text and text-to-speech layers around it. The hardest challenge was cross-lingual retrieval: a Hindi question would retrieve wrong passages because CUGA’s default embedding model is English-only. The fix was to use a multilingual embedding model (intfloat/multilingual-e5-large) so the same meaning lands in the same place regardless of language. The prompt asks the model not to produce Markdown or citation tags, and a light formatter strips any that slip through before speech. Simple input checks catch off-topic questions, and if one gets through the model starts its reply with OFF\_TOPIC so the app can swap in a polite redirect without a second LLM call.

## Context

Most useful knowledge is written in English, but many people who need it speak regional languages like Hindi, Tamil, Telugu, Gujarati, and Marathi, and prefer to talk rather than type. The post describes building a small voice agent to close that gap, using CUGA as the agent harness, and explains the use case and lessons learned.

## Approach / What changed

The agent uses CUGA as a text-in, text-out harness, with speech-to-text and text-to-speech layers added around it. A multilingual embedding model (intfloat/multilingual-e5-large) is used for cross-lingual retrieval so a Hindi question can find the right English paragraph. Guardrails are kept cheap with simple input checks and an OFF\_TOPIC prefix to avoid a second LLM call. The prompt asks the model not to produce Markdown or citation tags, and a light formatter strips any that slip through before speech.

## Takeaways

- The hardest part of a multilingual voice agent is cross-lingual retrieval: a Hindi question must find the right English paragraph. Using a multilingual embedding model like intfloat/multilingual-e5-large fixes this.
- Keep guardrails cheap: simple input checks catch off-topic questions, and if one gets through the model starts its reply with OFF\_TOPIC so the app can swap in a polite redirect without a second LLM call.
- Write for the ear: the prompt asks the model not to produce Markdown, bullet points, citation tags, or bracketed translations, and a light formatter strips any that slip through before speech.

## FAQ

### What is the hardest part of building a multilingual voice agent?

The hard part is cross-lingual retrieval: a Hindi question must find an English paragraph. CUGA's default embedding model is English-only, so a Hindi or Tamil question retrieves the wrong passages. The fix is to use a multilingual embedding model like intfloat/multilingual-e5-large.

### How does the voice agent architecture work?

The agent uses CUGA as a text-in, text-out brain. Voice is two thin layers around it: audio goes to speech-to-text, then to knowledge.search, then to CUGA for a grounded answer, then to text-to-speech, then back to audio. Because the agent only sees text, you can build and test it with plain text first.

### How does the agent handle off-topic questions?

Simple input checks catch obvious off-topic questions. If one gets through, the model starts its reply with OFF\_TOPIC, and the app swaps in a polite redirect. This avoids a second LLM call, keeping the voice path fast.

**Tags:** [CUGA](https://yomu.fyi/topic/cuga), [IBM](https://yomu.fyi/topic/ibm), [Multilingual](https://yomu.fyi/topic/multilingual), [RAG](https://yomu.fyi/topic/rag), [Voice AI](https://yomu.fyi/topic/voice-ai)

- Source: [Hugging Face](https://huggingface.co/blog/ibm-research/an-indic-voice-agent-with-cuga)
- Source URL: https://huggingface.co/blog/ibm-research/an-indic-voice-agent-with-cuga
- Ingested by Yomu: 2026-11-25T12:01:07.828Z

[Read original post](https://huggingface.co/blog/ibm-research/an-indic-voice-agent-with-cuga)
