Voice formatting plan
# support
y
I need help to know how to exactly do this thing please. I need the formatDistances, formatUnits, formatPercentages, formatPhoneNumbers functions. https://docs.vapi.ai/assistants/voice-formatting-plan My bot keeps on reading out distances digit by digit instead of as a whole number and the phone numbers as a whole number.
v
Thanks for sharing the details! To help you further, could you clarify whether you have already adjusted the
numberToDigitsCutoff
setting in your
voice.chunkPlan.formatPlan
configuration, or are you looking for guidance on how to change this setting to affect how distances and phone numbers are read out? You can find this setting in your configuration as:
Copy code
json
"voice": {
  "chunkPlan": {
    "formatPlan": {
      "numberToDigitsCutoff": 2025
    }
  }
}
Let me know if you need help with this specific configuration or if your issue is different! Source: - [Voice Formatting Plan Documentation](https://docs.vapi.ai/assistants/voice-formatting-plan)
y
No, I haven't changed anything. I'm not sure how to exactly do that. Yes, I need guidance on how to change this setting to affect how distances and phone numbers are read out.
Hope someone can help.
c
Hi Yssa Mae Amper, If you need to format text from a language model for natural-sounding speech using a text-to-speech provider, the process is handled by the voice formatting plan, which operates automatically for all assistants. You may refer to the [voice formatting plan documentation](https://docs.vapi.ai/assistants/voice-formatting-plan) for detailed information on how text is transformed, how to customize the formatting, and how to disable it if required. Let me know if you need further assistance with any specific aspect.
y
Thank you. I read this already. However, how do I exactly edit this one? For example, I want to change how formatPhoneNumbers work.
c
Hi Yssa, That specific behavior isn’t editable through the current voice formatting plan settings. Could you share an example of how you’d like the assistant to pronounce or format the phone number or distance? Once I have that, I can suggest the best way to achieve it or explore possible workarounds. Best, Vapi Support
y
Hi Kyle, I fixed this by playing with the prompt, but I think it will be more helpful if this can be done in a different way. So the bot should say it in grouping and with pauses. For example: Mobile: 04XX - XXX - XXX Landline: 0X - XXXX - XXXX
c
Ah I understand now. Since our phoneNumber formatting to US number convention, you'll have to resort to prompting to produce this output, which you have done already it seems like. Glad you were able to figure it out!
2 Views