Skip to content

Commit 1f14e65

Browse files
docs: voice fallback plan (#44)
1 parent 2f05480 commit 1f14e65

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed

fern/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ navigation:
243243
path: tools-calling.mdx
244244
- page: Prompting Guide
245245
path: prompting-guide.mdx
246+
- page: Voice Fallback Plan
247+
path: voice-fallback-plan.mdx
246248
- page: OpenAI Realtime
247249
path: openai-realtime.mdx
248250
- section: Glossary

fern/voice-fallback-plan.mdx

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
---
2+
title: Voice Fallback Plan
3+
subtitle: Configure fallback voices that activate automatically if your primary voice fails.
4+
slug: voice-fallback-plan
5+
---
6+
7+
<Note>
8+
Voice fallback plans can currently only be configured through the API. We are working on making this available through our dashboard.
9+
</Note>
10+
11+
## Introduction
12+
13+
By default, if an assistant's primary voice experiences any failure, Vapi will automatically attempt to use other available voices to continue the call. While this ensures call continuity, you might want more control over which specific voices are used as fallbacks.
14+
15+
Fallback plans give you precise control over the fallback sequence. Your assistant will sequentially fallback to only the voices you configure within your plan, in the exact order you specify.
16+
17+
## How It Works
18+
19+
When a voice failure occurs, Vapi will:
20+
1. Detect the failure of the primary voice
21+
2. If a custom fallback plan exists:
22+
- Switch to the first fallback voice in your plan
23+
- Continue through your specified list if subsequent failures occur
24+
- Terminate only if all voices in your plan have failed
25+
3. If no custom fallback plan is configured:
26+
- Automatically switch to other available voices
27+
- Continue attempting different voices
28+
- Terminate only if all available voices have failed
29+
30+
## Configuration
31+
32+
Add the `fallbackPlan` property to your assistant's voice configuration, and specify the fallback voices within the `voices` property.
33+
- Please note that fallback voices must be valid JSON configurations, and not strings.
34+
- The order matters. Vapi will choose fallback voices starting from the beginning of the list.
35+
36+
```json
37+
{
38+
"voice": {
39+
"provider": "openai",
40+
"voiceId": "shimmer",
41+
"fallbackPlan": {
42+
"voices": [
43+
{
44+
"provider": "cartesia",
45+
"voiceId": "248be419-c632-4f23-adf1-5324ed7dbf1d"
46+
},
47+
{
48+
"provider": "playht",
49+
"voiceId": "jennifer"
50+
}
51+
]
52+
}
53+
}
54+
}
55+
```
56+
57+
Although **not recommended**, you may choose to disable the default fallback behavior by providing an empty list of voices in your fallback plan:
58+
59+
```json
60+
{
61+
"voice": {
62+
"provider": "openai",
63+
"voiceId": "shimmer",
64+
"fallbackPlan": {
65+
"voices": []
66+
}
67+
}
68+
}
69+
```
70+
71+
## Best practices
72+
73+
- Use <b>different providers</b> for your fallback voices to protect against provider-wide outages.
74+
- Select voices with **similar characteristics** (tone, accent, gender) to maintain consistency in the user experience.
75+
76+
## How will pricing work?
77+
78+
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.

0 commit comments

Comments
 (0)