https://retellai.com/?utm_source=discord&utm_medium=seo logo
how can I make a spanish speaking voice agent
# ask-retell-partners
d
@AI Evy how can I make a spanish speaking voice agent?
a
Thanks for tagging me @dcphealth_99900. I'll look through relevant sources and get back to you shortly.
### Answer To create a Spanish-speaking voice agent in Retell AI, you need to configure both the language settings and voice selection [(1) ]() . ## Language Configuration Set the agent's language to Spanish, which will determine what language the agent understands (speech-to-text) and influence the default TTS model choice . You can configure this in the dashboard or programmatically using the Create Agent API by setting the
language
field [(1) ]() [(2) ]() .
Copy code
javascript
const agentResponse = await client.agent.create({
  response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
  voice_id: '11labs-Adrian',
  language: "es-ES" // Set to Spanish
}) ;
​ 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] Discord message from @shahretell on 2025-02-20](https://discord.com/channels/1186424376300679209/1186462578310910112/1342136120963502223) [[4] Step 1: Configure global settings](https://docs.retellai.com/build/conversation-flow/global-setting) [[5] Discord message from @shahretell on 2025-02-20](https://discord.com/channels/1186424376300679209/1186462578310910112/1342141938073341952) ​
[(2) ]() ## Voice Selection Use ElevenLabs for a flexible and customizable Spanish voice [(3) ]() . You can select a suitable voice from the dropdown or add a custom one, and adjust settings like temperature, speed, and volume . In the Conversation Flow interface, you can select the language of the agent in the global settings, which determines what language the agent will understand from user audio [(4) ]() . ## Prompt Configuration Write your prompt in English as you normally would, but include a clear instruction for the agent to always respond in Spanish [(3) ]() [(5) ]() . Add something like "always respond in Spanish" into the prompt [(1) ]() . The language setting will not enforce the agent to generate responses in Spanish - you must specify this in the prompt itself . It also won't enforce a specific accent, so choose a voice that speaks with the desired accent .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.