How to use custom formatting
# support
m
I came accross: https://docs.vapi.ai/assistants/voice-formatting-plan It seems great, but I was wondering if we could use our own formatters? Because I think vapi ones are limited to english only? I need to perform some of these transformations for french language? I could be great if it was opensourced so people can contribute on their language @nikhil @Sahil
z
Similar question, I have setup an assistant for taking coding interview, and currently it tries to read out code snippets as english text. How do i setup a custom voice formatting plan that can efficiently explain code snippets, latex text etc
s
@zipfinder can you ping me to your support ticket.
@marem These voice formatting plan options are merely utility functions to format the LLM output for simplifying LLM output for voice provider. Could you kindly share your usage and thoughts on custom voice formatters for the French language? What specific utilities are you looking for?
m
Yes, I am thinking about currencies and year: 42,50€ => quarante deux euros cinquante 2026 => deux mille vingt six Big numbers: 42000 => quarante deux mille (or 42 000) French Phone number pronunciation (we pronounce digits with pairs): +33612345678 => 06 12 34 56 78 Also about streets, we also have some abbreviations: bd => boulevard But I think I may miss lot of other usecases, it's empiric approach, that would be great if we had the ability to add our own custom formatters when we find issues in conversation
I don't know what to expect from this thread. Sounds like a great feature but half-way implemented. My opinion is that
voice-formatting-plan
is a must have to improve conversations experience, and that's great that Vapi provide it out of the box. But it's currently not fully working for languages other than
en
. And it can generate error for some of the functions. Correct me if I'm wrong: - We have no ability to add our owns formatting plan functions - We have no ability to disable some (we can disable the formatting plan, but that will disable all functions) - Some of the functions generate some issues for foreign languages as they format the LLM output with
en
language even if prompt is setup in
fr
language for instance. So we are kind of blocked if we need to overcome these limitations but we have agents which use foreign languages. Do you agree with that @Shubham Bajaj ? Is it something you have in mind on the product team? Is it worth adding it to the roadmap?
s
@marem Your correct on most points except the toggling voice formatting plan formatters. We need to sanitize LLM output before it's sent to voice provider, and it won't be straight forward for implementing such utility as universal tool for all but worth a try. Can you raise an feature request over here: https://roadmap.vapi.ai
3 Views