You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fern/calls/voicemail-detection.mdx
+56Lines changed: 56 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -453,6 +453,60 @@ Choose between two detection methods based on provider performance:
453
453
454
454
---
455
455
456
+
## **Pre-recorded Audio Messages**
457
+
458
+
Instead of text-to-speech, you can use pre-recorded audio files for your voicemail messages. Simply provide the URL to your audio file in the `voicemailMessage` property:
Pre-recorded audio messages provide consistent quality and pronunciation, especially useful for brand-specific messaging or complex information like phone numbers and website URLs.
506
+
</Tip>
507
+
508
+
---
509
+
456
510
## **Disabling Voicemail Detection**
457
511
458
512
To completely disable voicemail detection for your assistant, set the `voicemailDetection` property to `"off"`:
@@ -596,6 +650,8 @@ When voicemail detection is disabled, your assistant will continue the conversat
596
650
597
651
By using Vapi's detection system, you'll avoid the common pitfalls of voicemail detection, while creating a **faster, smarter, and more professional experience** for your users.
598
652
653
+
654
+
599
655
## **Related Documentation**
600
656
601
657
-**[Voicemail Tool](/tools/voicemail-tool)** - Alternative assistant-controlled voicemail approach for maximum flexibility
Define the voicemail message in the tool configuration:
133
133
134
+
### **Text-to-Speech Messages**
135
+
134
136
```json
135
137
{
136
138
"messages": [
@@ -146,9 +148,64 @@ Define the voicemail message in the tool configuration:
146
148
Use template variables like `{{company}}`, `{{message}}`, and `{{phone}}` to make your voicemail messages dynamic while keeping them consistent.
147
149
</Tip>
148
150
151
+
### **Pre-recorded Audio Messages**
152
+
153
+
For consistent quality and pronunciation, use pre-recorded audio files by providing the URL in the `content` field:
154
+
155
+
```json
156
+
{
157
+
"messages": [
158
+
{
159
+
"type": "request-start",
160
+
"content": "https://example.com/voicemail.mp3"
161
+
}
162
+
]
163
+
}
164
+
```
165
+
166
+
**Supported formats**: `.wav` and `.mp3` files
167
+
168
+
<Note>
169
+
Pre-recorded audio messages are ideal for brand-specific messaging or when you need precise pronunciation of phone numbers, website URLs, or company names.
170
+
</Note>
171
+
149
172
## Advanced Examples
150
173
151
-
### Dynamic voicemail with context
174
+
### **Pre-recorded Audio Example**
175
+
176
+
Using pre-recorded audio for professional voicemail messages:
177
+
178
+
```json
179
+
{
180
+
"model": {
181
+
"provider": "openai",
182
+
"model": "gpt-4o",
183
+
"messages": [
184
+
{
185
+
"type": "system",
186
+
"content": "You are a sales representative calling prospects. If you reach voicemail, use the leave_voicemail tool to play our professional pre-recorded message."
187
+
}
188
+
],
189
+
"tools": [
190
+
{
191
+
"type": "voicemail",
192
+
"function": {
193
+
"name": "leave_voicemail",
194
+
"description": "Leave a professional pre-recorded voicemail message"
0 commit comments