> For the complete documentation index, see [llms.txt](https://academy.gooey.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://academy.gooey.ai/ai-for-impact/module-6.md).

# Adding Language and translation

{% embed url="<https://youtu.be/cz4RBz3mXrI>" %}

### **Add Speech Recognition and Translation**

This guide explains how to enable speech recognition and translation in your GUI AI-powered AI Agent, using the example of a hypertension health assistant. These features are especially useful for building multilingual bots—like an agriculture assistant for Northern India, where Hindi is widely spoken. With these capabilities, users can send voice notes in their preferred language and receive answers in the same language.

#### **Enabling Speech Recognition**

* In the Capabilities section, enable the **Speech Recognition** feature. This allows users to record voice messages directly into the AI Agent.

<figure><img src="/files/Wsi8l7jUjSscwEBGfUpU" alt=""><figcaption></figcaption></figure>

### Test

Click the microphone/clip icon in the message section, record a question (e.g., “What is your recommendation for drug classes as first-line agents?”), and click on "Send".

<figure><img src="/files/MKLldMr5AXPrtMw71rWu" alt=""><figcaption></figcaption></figure>

* The LLM processes the transcribed text and generates a response, referencing the knowledge base (e.g., the WHO hypertension guidelines).

### Adding T**ranslation**

Many LLMs may not fully understand non-English languages, so translation is essential to any AI Agent pipeline.&#x20;

Steps to follow:&#x20;

* To support other languages (e.g., Hindi), enable the **Translation** feature alongside speech recognition.
  * Select your translation provider (e.g., Google Translate).
  * Set the target translation language (e.g., Hindi).
* Now, when a user submits a voice note in their preferred language, the system will:
  * Transcribe the audio
  * Translate the input to English for the LLM (if needed)
  * Process the question
  * Translate the LLM’s response back into the user’s language (e.g., Hindi)

### **Next Steps**

* In the next guide, you’ll learn how to add **Text-to-Speech**, allowing users to listen to responses in their language instead of reading.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://academy.gooey.ai/ai-for-impact/module-6.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
