https://retellai.com/?utm_source=discord&utm_medium=seo logo
how to instruct agent to pronounce numbers and dat...
# ❓・ai-evy-support
r
@AI Evy how to instruct agent to pronounce numbers and dates naturally
a
Thanks for tagging me @ray. I'll look through relevant sources and get back to you shortly.
### Answer Enable the
normalize_for_speech
setting on your agent. [(1) ]() [(2) ]() [(3) ]() When set to
true
, this will normalize numbers, currency, dates, and similar text to their spoken form for more consistent speech synthesis. For example, it will convert: -
"Call my number 2137112342 on Jul 5th, 2024 for the $24.12 payment"
to: -
"Call my number two one three seven one one two three four two on july fifth, twenty twenty four for the twenty four dollars twelve cents payment"
You can enable this via the API when creating or updating your agent:
Copy code
javascript
const agentResponse = await client.agent.create({
  response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
  voice_id: '11labs-Adrian',
  normalize_for_speech: true
}) ;
[(1) ]() Or when updating an existing agent:
Copy code
javascript
const agentResponse = await client.agent.update('16b980523634a6dc504898cda492e939', {
  normalize_for_speech: true
}) ;
[(3) ]() You can also enable this setting in the Dashboard under your agent's configuration. [(1) ]() [(3) ]()
​ To learn more, see the sources I considered: [[1] Create Voice Agent](https://docs.retellai.com/api-references/create-agent) [[2] Get Voice Agent](https://docs.retellai.com/api-references/get-agent) [[3] Update Voice 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.