Numbers
# support
l
How do I get my agent to say numbers correctly? For example when I want it to say $4500, it currently says four five zero zero dollars. Any suggestions?
v
Hi @loadpivot, I'm an AI assistant for Vapi. While a team member reviews this question, I'll look through relevant sources and see if I can provide suggestions.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Billing Examples]() * [Get Assistant]() * [Create Assistant]() * [Delete Assistant]() -----------------------------
### Answer To ensure your agent says numbers correctly, like "$4500" as "four thousand five hundred dollars," you could adjust the text processing within your assistant's configuration. While specific instructions on text preprocessing for numerical values in speech aren't directly provided in the documents, you might consider implementing custom logic in your application that formats numbers to their spoken equivalents before sending the text to your Vapi assistant for speech synthesis. This approach involves converting numerical values into their textual representation that naturally corresponds to how the number should be spoken. For more complex customization or handling specific scenarios, reviewing the assistant's configuration options or exploring the voice provider's documentation might provide additional insights or features related to speech customization [(1)]() .
l
How do I implement custom logic
a
via advanced prompting techniques (e.g. by defining rules within your prompt)
g
"You are forbidden to write prices in numbers like 4500$ instead always write it with full english words instead like 'forty five thousand dollars'"
l
Thanks. I’ll test it out now.
Seems to have worked. Thanks