Commas and dashes creating odd pauses in VAPI spee...
# support
p
Would like to make it so Model outputs of only punctuation is ignored for speech generation as it creates odd pauses making speech sound like reading from a script and awkward. Example call IDs: b4defd1b-85f8-4357-aa49-41d40136a90f 7909eaf9-28a4-4b6c-b040-a3a26bb0bb81 Explicitly asking for no punctuation in response for Model is not working and still output "-", ",", etc
if you look at the logs, the ",", "-", or "--" is being sent to the voice gen so it creates pauses where it shouldn't.
c
Looking into it
Hi PENDINGREALITY, To address the issue of VAPI speech generating awkward pauses by interpreting punctuation, you can disable the voice input formatting, which affects how punctuation is handled. This is part of the voice formatting plan on VAPI. You can customize or disable formatting using these settings: 1. Set
voice.chunkPlan.enabled = false
or
voice.chunkPlan.formatPlan.enabled = false
to disable all formatting and revert to raw LLM output, avoiding the additional pauses caused by punctuation. For more details and customization options, you can refer to the [Voice Formatting Plan](https://docs.vapi.ai/assistants/voice-formatting-plan).
p
I see, instead of diusabling everything, how can I simply add a new step into the formatting to account for this behvaior?
Specifically, I want to ensure that chunks that are ONLY punctation is not sent to the TTS.
Would replacements be valid here?
Lastly how are these edits made? via GUI or is there API for this?
c
Hey, these edits are done through API for now, but in the future, you can do them through the GUI as well. If you can handle the punctuation part through LLM, try that. If not, you can use replacements to make it work. Let me know how it goes for you.