Voice Fallback Plan
Configure fallback voices that activate automatically if your primary voice fails.
Voice fallback plans can currently only be configured through the API. We are working on making this available through our dashboard.
Introduction
Voice fallback plans give you the ability to continue your call in the event that your primary voice fails. Your assistant will sequentially fallback to only the voices you configure within your plan, in the exact order you specify.
Without a fallback plan configured, your call will end with an error in the event that your chosen voice provider fails.
How It Works
When a voice failure occurs, Vapi will:
- Detect the failure of the primary voice
- If a custom fallback plan exists:
- Switch to the first fallback voice in your plan
- Continue through your specified list if subsequent failures occur
- Terminate only if all voices in your plan have failed
Configuration
Add the fallbackPlan
property to your assistant’s voice configuration, and specify the fallback voices within the voices
property.
- Please note that fallback voices must be valid JSON configurations, and not strings.
- The order matters. Vapi will choose fallback voices starting from the beginning of the list.
Best practices
- Use different providers for your fallback voices to protect against provider-wide outages.
- Select voices with similar characteristics (tone, accent, gender) to maintain consistency in the user experience.
How will pricing work?
There is no change to the pricing of the voices. Your call will not incur any extra fees while using fallback voices, and you will be able to see the cost for each voice in your end-of-call report.