stardust
03/26/2025, 8:44 PMVapi Support Bot
03/26/2025, 8:46 PMVapi Support Bot
03/26/2025, 8:46 PMjson
{
"transcriber": {
"provider": "deepgram",
"language": "en",
"model": "nova-2"
}
}
2. **Review Your System Prompt**: Make sure your system prompt clearly instructs the AI to respond only in English and doesn't contain any conflicting language instructions. According to [prompt configuration guidance](https://docs.vapi.ai/prompting-guide), well-crafted prompts are crucial for consistent AI behavior.
3. **Set Model Temperature**: Consider setting the model temperature to a lower value (0-0.3) to improve consistency in responses, as suggested in [language prompt configuration](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341892594044633099).
4. **Check Voice Model Language**: Ensure that the language for the voice model is also specified as English. According to [language settings documentation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1270786139355090995), if the voice model language is not specified, this could cause issues.
5. **Include Clear Language Instructions**: Add a specific instruction in your prompt like: "Generate your response in English only" to ensure consistent language use.
Would you like me to provide more specific guidance on any of these troubleshooting steps?
Sources:
- [Troubleshooting AI language model responding in unexpected language](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1328595920899674152)
- [Vapi AI agent language prompt configuration](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333350360932421682)
- [Vapi AI agent language settings](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1331035264751112202)Vapi Support Bot
03/26/2025, 8:46 PMstardust
03/27/2025, 2:01 AMen
all settings seems to be fine.Sahil
03/28/2025, 12:54 AMPlease give me a moment while I verify that.
to `es`: Por favor, déjelo en paz mientras verifico eso.
Hey Stardust, it's a complete mistake where mistakenly convert your content into Spanish (ES) language, which it was not supposed to be. Do you have any other call IDs where this behavior is being repeated as well?stardust
03/28/2025, 8:19 PMShubham Bajaj
03/29/2025, 3:17 PMcontents
property, which is specifically designed for multilingual support. Here's what's happening:
1. Your tool call includes messages with the contents
property containing English text
2. The system has French (fr
) set as the activeLanguage
3. The contents
property triggers the automatic translation mechanism
4. Since no French content is found in the array, it translates the English content to French
5. The translated French text is then sent to the speech generation service
## Solution: Use content
Instead of contents
Yes, using the content
property instead of contents
will resolve this issue.
When you use the content
property:
1. It bypasses the multilingual content handling logic
2. The text will be used as-is without automatic translation
3. Your English content will remain English regardless of the active language setting
### Implementation:
Change your tool message format from:
javascript
"messages": [
{
"type": "request-start",
"contents": [
{
"type": "text",
"text": "Please give me a moment while I verify that.",
"language": "en"
},
{
"type": "text",
"text": "Just a moment while I verify that",
"language": "en"
}
],
"conditions": [],
"blocking": false
}
]
To:
javascript
"messages": [
{
"type": "request-start",
"content": "Please give me a moment while I verify that.",
"conditions": [],
"blocking": false
}
]
This change will ensure your content remains in its original language and won't be automatically translated to French or any other active language in the system.stardust
04/03/2025, 5:02 AMSahil
04/06/2025, 12:39 PM