https://retellai.com/?utm_source=discord&utm_medium=seo logo
When I set an agents language to multilingual what...
# ❓・ai-evy-support
m
@AI Evy When I set an agents language to multilingual what does that do?
a
Thanks for tagging me @minus.ace. I'll look through relevant sources and get back to you shortly.
### Answer When you set an agent's language to
multi
, you enable multilingual support. [(1) ]() [(2) ]() This currently supports Spanish and English. The
language
parameter specifies what language (and dialect) the speech recognition will operate in. Selecting
multi
for multilingual support allows the agent to handle conversations in both Spanish and English. However, based on community feedback, some users have reported that Spanish calls may not perform as well with multilingual agents compared to dedicated Spanish-only agents. [(3) ]() The quality can depend on the types of calls coming in, and some agents work best sticking with just one language. If you need the highest accuracy for Spanish, you might consider creating separate agents—one for English and one specifically for Spanish—rather than using a single multilingual agent.
​ To learn more, see the sources I considered: [[1] Update Agent](https://docs.retellai.com/api-references/update-agent) [[2] Create Agent](https://docs.retellai.com/api-references/create-agent) [[3] Multilingual Agent is not working for Spanish language properly!!!](https://discord.com/channels/1186424376300679209/1430561750222372886) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy If I have an english agent but I tell it to start responding in spanish will it?
a
Thanks for the follow-up, @minus.ace. I'll get back to you soon.
### Answer Based on the available sources, the
language
setting determines what language the speech recognition operates in and influences the default TTS model choice and speech normalization. [(1) ]() What the language setting does not do is enforce the agent to generate responses in a certain language. You have to set that in the prompt yourself—for example, by adding something like "always respond in Spanish" into the prompt. So if you have an English agent (language set to
en-US
) but tell it in the prompt to respond in Spanish, the agent will attempt to generate Spanish responses. However, the speech recognition will still be optimized for English, which may affect transcription accuracy if the user speaks Spanish. For best results with Spanish responses, you'd want to either: 1. Set the language to Spanish (e.g.,
es-ES
or
es-419
) and include Spanish instructions in the prompt [(1) ]() [(2) ]() 2. Use the
multi
multilingual option if you need to handle both English and Spanish in the same agent [(2) ]() [(3) ]() [(4) ]() [(5) ]()
​ To learn more, see the sources I considered: [[1] Set language for your agent](https://docs.retellai.com/agent/language) [[2] Create Agent](https://docs.retellai.com/api-references/create-agent) [[3] Get Agent](https://docs.retellai.com/api-references/get-agent) [[4] Update Agent](https://docs.retellai.com/api-references/update-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy I have my agent set to english yet it responds in spanish and understands spanish what is the difference?
a
Thanks for the follow-up, @minus.ace. I'll get back to you soon.
### Answer Based on the documentation, the
language
setting has specific effects and limitations: [(1) ]() What the language setting does: - Determines what language the agent would understand (language of speech to text) - Determines the default TTS model choice based on that language (default voice model) - Will pass that language code to TTS provider and influence the synthesized speech - Influences the speech normalization process What it does NOT do: - It will not enforce the agent to generate responses in a certain language - It will not enforce the agent to pronounce the generated text in a certain accent The key difference is that the language setting primarily controls the *speech recognition (STT) * and *voice synthesis (TTS) * components, but not the LLM's response language. If your agent is set to English but responds in Spanish and understands Spanish, this is likely because: 1. Your prompt instructs the agent to respond in Spanish (the LLM follows prompt instructions regardless of the language setting) 2. Modern LLMs are multilingual by nature and can understand and generate Spanish even when the speech recognition is optimized for English To control the response language, you need to set that in the prompt itself—for example, by adding something like "always respond in Spanish" into the prompt. For optimal performance with Spanish, you should either set the language to a Spanish variant (like
es-ES
or
es-419
) or use the multilingual option. [(1) ]() [(3) ]()
​ To learn more, see the sources I considered: [[1] Set language for your agent](https://docs.retellai.com/agent/language) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy For a voice agent if most llms are multilingual by nature what is the point of setting multilingual vs english?
a
Thanks for the follow-up, @minus.ace. I'll get back to you soon.
### Answer --- ### Answer Even though LLMs are multilingual by nature, the
language
setting is crucial because it controls the *Speech-to-Text (STT) * and *Text-to-Speech (TTS) * components, not just the LLM's understanding. [(1) ]() Here's what the language setting specifically does: - Determines what language the agent would understand (language of speech to text) - Determines the default TTS model choice based on that language (default voice model) - Will pass that language code to TTS provider and influence the synthesized speech - Influences the speech normalization process When you set the language to
en-US
(English) , the speech recognition is optimized for English accents, pronunciation, and vocabulary. [(1) ]() [(2) ]() When you set it to
multi
for multilingual support, it enables the agent to handle code-switching between languages—currently supporting Spanish and English. The key difference: Setting
multi
allows the speech recognition to accurately transcribe both English and Spanish speakers, whereas setting
en-US
optimizes STT only for English. [(1) ]() Even though the LLM can understand Spanish text, if your STT is tuned for English, it may transcribe Spanish speech poorly, leading to misunderstandings. Additionally, the language setting influences which TTS voice models are selected by default and how text is normalized for natural speech output. So while the LLM itself is multilingual, the entire voice pipeline—from hearing the caller to speaking back—needs proper language configuration for optimal performance. --- **
​ To learn more, see the sources I considered: [[1] Set language for your agent](https://docs.retellai.com/agent/language) [[2] Create Agent](https://docs.retellai.com/api-references/create-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.