https://retellai.com/?utm_source=discord&utm_medium=seo logo
language is not consistent, user talks in spanish ...
# ❓・ai-evy-support
w
@AI Evy language is not consistent, user talks in spanish but the retell voice agent doesnt always reply in spanish or will speak in english
a
Thanks for tagging me @wesleybldc. I'll look through relevant sources and get back to you shortly.
### Answer The language setting in Retell AI determines what language the agent understands (speech-to-text) and influences the TTS model choice and synthesized speech [(1) ]() . However, it does not enforce the agent to generate responses in a certain language . To fix the inconsistent Spanish responses, you need to explicitly instruct the agent in the prompt [(1) ]() [(2) ]() . Add clear Spanish instructions like "always respond in Spanish" or "Habla solo en español" directly into your agent's prompt . The language setting can be configured: - In the dashboard by selecting Spanish (es-ES or es-419) from the language dropdown [(1) ]() [(3) ]() - Programmatically via the
language
field in the Create Agent API or Update Agent API [(1) ]() [(4) ]() If you need multilingual support (Spanish and English code-switching) , select the
multi
option for the language setting [(1) ]() [(4) ]() [(5) ]() . When using multilingual mode, English prompts work better than Spanish prompts [(2) ]() .
​ To learn more, see the sources I considered: [[1] Set language for your agent](https://docs.retellai.com/agent/language) [[2] Agent Language not taking effect in Voice](https://discord.com/channels/1186424376300679209/1400434278633967616) [[3] Step 1: Configure global settings](https://docs.retellai.com/build/conversation-flow/global-setting) [[4] Create Agent](https://docs.retellai.com/api-references/create-agent) [[5] Get Agent](https://docs.retellai.com/api-references/get-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.