https://retellai.com/?utm_source=discord&utm_medium=seo logo
I have two prompt i send this both as a dynamica v...
# ❓・ai-evy-support
j
@AI Evy I have two prompt i send this both as a dynamica value the entire prompt in that prompt there is also few dynamica values 1st prompt for call propose {{first_name}}, I know we've been trying to reach you - this is Monica. I'm calling about your judgment against {{debtor_name}} for {{amount}}. The reason I'm being persistent is that the asset transfer window we've detected is closing fast. After years of waiting, this could be your best chance to collect on the judgment awarded on {{date}}. 2nd prompt for voicemail Hello {{name}}, this is Monica with Goodwill Recovery calling back about {{debtor_name}}. I tried reaching you this morning about an urgent enforcement opportunity we've detected. These windows are extremely time-sensitive, and I'd hate for you to miss this chance to collect your "{{amount}}" judgment. Please call me back today at 3,0,5 - 9,1,2 - 9,4,8,5. Again, that's Monica at 3,0,5 - 9,1,2 - 9,4,8,5. Thank you. in the call prompt i pass the amount as 500,000 it pronunces it correctly in call as five hundrend thousand dolars in the same value in voicemail pronunces it wrong as five zero zero zero zero ero zero i need a solution to resolve this its wokring on call prompt but not in voicemail
a
Thanks for tagging me @jeevacw. I'll look through relevant sources and get back to you shortly.
### Answer This issue is likely caused by differences in how Retell AI normalizes dynamic variable values for speech in different contexts. The documentation shows that when normalize_for_speech is enabled, Retell AI will convert values like "500,000" to a spoken form ("five hundred thousand") for more consistent speech synthesis, especially for numbers, currency, and dates. However, this normalization only applies when the normalize_for_speech option is set to true [(1) ]() [(2) ]() . If the call prompt is pronouncing "500,000" correctly but the voicemail prompt spells out each digit, check whether normalize_for_speech is enabled for both the main prompt and the voicemail_option object in your agent configuration. You may need to ensure that normalize_for_speech is applied to the voicemail as well as the main dialog. This setting can be updated using the agent update API:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.update('YOUR_AGENT_ID', { normalize_for_speech: true }) ;
console.log(agentResponse.agent_id) ;
[(1) ]() Make sure that your voicemail_option message does not include extra quotation marks around {{amount}}, as quoting can sometimes affect normalization. For example, use {{amount}} instead of "{{amount}}" in the voicemail template. If these settings are already correct and you still experience issues, you may need to adjust how dynamic variables are passed or formatted, or test with different prompt phrasings [(3) ]() .
​ To learn more, see the sources I considered: [[1] Update Agent](https://docs.retellai.com/api-references/update-agent) [[2] List Agents](https://docs.retellai.com/api-references/list-agents) [[3] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy how to chek hether the normalisation option is enabled for voicemail?
a
Thanks for the follow-up, @jeevacw. I'll get back to you soon.
### Answer To check if speech normalization is enabled for your agent (which will affect both main prompts and voicemail) , retrieve your agent configuration and look for the normalize_for_speech field. You can do this using the Get Agent API:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
  apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.retrieve('YOUR_AGENT_ID') ;
console.log(agentResponse.normalize_for_speech) ;
If normalize_for_speech is true, normalization is enabled for your entire agent, including voicemail prompts [(1) ]() . If you need to update this setting, use the Update Agent API and set normalize_for_speech to true or false as needed [(2) ]() .
​ To learn more, see the sources I considered: [[1] Get Agent](https://docs.retellai.com/api-references/get-agent) [[2] 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.
j
@AI Evy Isthere any options in settings for it?
a
Thanks for the follow-up, @jeevacw. I'll get back to you soon.
### Answer Yes, there is a setting for speech normalization in the agent configuration. The option is called normalize_for_speech. If set to true, it normalizes numbers, currency, dates, etc., to their spoken form for more consistent speech synthesis—this applies to all speech generated by the agent, including voicemail prompts [(1) ]() . You can check or update this setting in your agent configuration: - When retrieving or listing agents, look for the normalize_for_speech field in the agent object , [(2) ]() . - To enable it, set normalize_for_speech: true when creating or updating the agent [(1) ]() .
​ To learn more, see the sources I considered: [[1] Create Agent](https://docs.retellai.com/api-references/create-agent) [[2] List Agents](https://docs.retellai.com/api-references/list-agents) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.