### Answer
Based on the sources, here are specific steps to fix this issue:
Switch from Multilingual to English Language Setting
The core issue is that multilingual mode auto-detects language based on the text, which can cause unexpected language switching [(1) ](
) . Even with an explicit English prompt, the multilingual setting may still trigger code-switching [(2) ](
) .
Solution:
1. Change your agent's language setting from "multilingual" to "English" [(1) ](
)
2. Keep your explicit English instructions in the prompt [(2) ](
)
According to a similar case in the sources, when an agent was set to Spanish but kept speaking English, the fix was to add clear language instructions in the prompt . However, your situation is reversed - you have English prompts but multilingual is overriding them.
Why This Happens:
- The language setting determines what language the agent understands (speech-to-text) [(1) ](
)
- It will NOT enforce the agent to generate responses in a certain language - you have to set that in the prompt yourself
- With multilingual, the system auto-detects language, which can cause it to switch languages even when the conversation context is clear
Additional Considerations:
- English prompts work better in multilingual settings, but the auto-detection can still cause issues [(2) ](
)
- The voice you select (voiceId) is the primary determinant of accent [(1) ](
)
- The language code is passed to the TTS provider, which may have subtle effects on pronunciation
Try switching to