https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hi, I know that pronunciation dictionary is only a...
# ❓・ai-evy-support
o
@AI Evy Hi, I know that pronunciation dictionary is only available with English & 11labs. However my use case is non-English and I need to somehow change how the agent pronounces certain words. What are my options here?
a
Thanks for tagging me @Ozan. I'll look through relevant sources and get back to you shortly.
### Answer You're correct that the pronunciation dictionary feature is currently only supported for English agents using 11Labs voices. [(1) ]() [(2) ]() [(3) ]() For non-English agents, the available options based on the documentation are limited. One approach mentioned is using boosted keywords (custom vocabulary) to help the speech-to-text model recognize specific words more accurately. [(2) ]() [(3) ]() You can set this via the
boosted_keywords
parameter:
Copy code
json
["retell", "kroger"]
[(2) ]() This helps bias the transcriber model so certain words are more likely to be transcribed correctly, which is commonly used for names, brands, and street names. However, I don't have documented information on a direct pronunciation control method for non-English TTS output equivalent to the pronunciation dictionary feature. Check out these potentially useful sources: - [Add custom pronunciation]() - [Update Voice Agent]() - [Contact Sales]() Would you like me to try to provide a general answer based on my broader knowledge, or would you prefer to reach out to Retell support for more specific guidance on non-English pronunciation customization?
​ To learn more, see the sources I considered: [[1] Add custom pronunciation](https://docs.retellai.com/build/add-pronunciation) [[2] Update Voice Agent](https://docs.retellai.com/api-references/update-agent) [[3] Create Voice 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.
Thanks for the follow-up, @Ozan. I'll get back to you soon.
o
@AI Evy Yes, provide a general answer on your broader knowledge. Maybe configure the LLM part to output certain words in a way that we want how them to be pronounced? (like regex or basic text replacement?)
a
### Answer Yes, that's a viable workaround. Here are some general approaches you can try: ## 1. Prompt-Based Phonetic Spelling Instruct your LLM (via the global prompt or node-level prompts) to output certain words spelled phonetically in a way that the TTS engine will pronounce correctly. For example, if "Müller" is mispronounced, you could instruct the LLM: "When saying the name Müller, output it as 'Mew-ler' instead." ## 2. Custom LLM Post-Processing If you're using a Custom LLM via the LLM WebSocket, you have full control over the
content
field in your response events. [(1) ]() You can implement text replacement logic on your server before sending the response:
Copy code
python
# Example server-side replacement before sending to Retell
content = content.replace("Müller", "Mew-ler")
content = content.replace("Szczepański", "Shche-pan-ski")
This gives you regex or dictionary-based substitution capabilities since you control what text gets sent to the TTS. ## 3. Speech Normalization Setting Retell offers a Speech Normalization option that converts entities like dates, currency, and numbers into plain words, which can help with pronunciation issues for those specific cases. [(2) ]() ## Limitations These are workarounds rather than native pronunciation dictionary support. The phonetic spelling approach works best when: - You have a finite set of problematic words - The phonetic approximation sounds acceptable in your target language - You're willing to accept slightly unnatural spellings in transcripts For production use cases with many pronunciation requirements, reaching out to Retell support about non-English pronunciation roadmap would be worthwhile.
​ To learn more, see the sources I considered: [[1] LLM WebSocket](https://docs.retellai.com/api-references/llm-websocket) [[2] Step 1: Configure global settings](https://docs.retellai.com/build/conversation-flow/global-setting) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.