Skip to content

Commit a67e70f

Browse files
update to vapi voices v2
1 parent 8702d22 commit a67e70f

8 files changed

Lines changed: 33 additions & 13 deletions

File tree

fern/assistants/examples/docs-agent.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ Guidelines:
137137
// Configure voice settings
138138
voice={
139139
"provider": "vapi",
140+
"version": 2,
140141
"voiceId": "Harry"
141142
},
142143
// Configure transcription
@@ -274,6 +275,7 @@ Guidelines:
274275
// Configure voice settings
275276
voice: {
276277
provider: "vapi",
278+
version: 2,
277279
voiceId: "Harry"
278280
},
279281
// Configure transcription
@@ -341,6 +343,7 @@ Guidelines:
341343
// Configure voice settings
342344
voice={
343345
"provider": "vapi",
346+
"version": 2,
344347
"voiceId": "Harry"
345348
},
346349
// Configure transcription

fern/assistants/pronunciation-dictionaries.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,9 @@ Cartesia pronunciation dictionaries use a `text` and `alias` format. Each entry
241241
```json
242242
{
243243
"voice": {
244-
"voiceId": "Elliot",
245244
"provider": "vapi",
245+
"version": 2,
246+
"voiceId": "Elliot",
246247
"pronunciationDictionary": [
247248
{
248249
"pronunciationDictId": "pdict_abc123"

fern/calls/call-features.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ curl -X POST 'https://aws-us-west-2-production1-phone-call-websocket.vapi.ai/742
159159
"name": "new_assistant",
160160
"voice": {
161161
"provider": "vapi",
162+
"version": 2,
162163
"voiceId": "Neha"
163164
},
164165
}

fern/calls/voicemail-detection.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ This configuration optimizes for fast detection and professional voicemail deliv
123123
"name": "Sales Outreach Assistant",
124124
"voice": {
125125
"provider": "vapi",
126+
"version": 2,
126127
"voiceId": "Paige"
127128
},
128129
"model": {
@@ -183,6 +184,7 @@ const salesAssistant = await vapi.assistants.create({
183184
voice: {
184185
speed: 0.9,
185186
provider: "vapi",
187+
version: 2,
186188
voiceId: "Paige"
187189
},
188190
model: {
@@ -224,6 +226,7 @@ sales_assistant = client.assistants.create(
224226
name="Sales Outreach Assistant",
225227
voice={
226228
"provider": "vapi",
229+
"version": 2,
227230
"voiceId": "Paige"
228231
},
229232
model={
@@ -267,6 +270,7 @@ Optimized for high-accuracy detection and detailed voicemail messages:
267270
"name": "Customer Support Assistant",
268271
"voice": {
269272
"provider": "vapi",
273+
"version": 2,
270274
"voiceId": "Elliot"
271275
},
272276
"model": {
@@ -306,6 +310,7 @@ const supportAssistant = await vapi.assistants.create({
306310
name: "Customer Support Assistant",
307311
voice: {
308312
provider: "vapi",
313+
version: 2,
309314
voiceId: "Elliot"
310315
},
311316
model: {
@@ -342,6 +347,7 @@ Balanced configuration for appointment confirmations with fallback voicemail:
342347
"name": "Appointment Reminder Assistant",
343348
"voice": {
344349
"provider": "vapi",
350+
"version": 2,
345351
"voiceId": "Rohan"
346352
},
347353
"model": {

fern/security-and-privacy/PCI.mdx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@ Here's a complete squad configuration that demonstrates this approach:
9090
]
9191
},
9292
"voice": {
93-
"voiceId": "Elliot",
94-
"provider": "vapi"
93+
"provider": "vapi",
94+
"version": 2,
95+
"voiceId": "Elliot"
9596
},
9697
"transcriber": {
9798
"model": "nova-2",
@@ -137,8 +138,9 @@ Here's a complete squad configuration that demonstrates this approach:
137138
}
138139
},
139140
"voice": {
140-
"voiceId": "Elliot",
141-
"provider": "vapi"
141+
"provider": "vapi",
142+
"version": 2,
143+
"voiceId": "Elliot"
142144
},
143145
"transcriber": {
144146
"model": "nova-2",
@@ -191,8 +193,9 @@ Here's a complete squad configuration that demonstrates this approach:
191193
]
192194
},
193195
"voice": {
194-
"voiceId": "Elliot",
195-
"provider": "vapi"
196+
"provider": "vapi",
197+
"version": 2,
198+
"voiceId": "Elliot"
196199
},
197200
"transcriber": {
198201
"model": "nova-2",

fern/security-and-privacy/recording-consent-plan.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ Add the recording consent plan to your assistant's `compliancePlan`:
7979
"type": "stay-on-line",
8080
"message": "For quality and training purposes, this call may be recorded. Please stay on the line if you agree to being recorded, or hang up if you do not consent.",
8181
"voice": {
82-
"voiceId": "Neha",
83-
"provider": "vapi"
82+
"provider": "vapi",
83+
"version": 2,
84+
"voiceId": "Neha"
8485
},
8586
"waitSeconds": 3
8687
}
@@ -97,8 +98,9 @@ Add the recording consent plan to your assistant's `compliancePlan`:
9798
"type": "verbal",
9899
"message": "This call may be recorded for quality and training purposes. Do you agree to being recorded? Please say 'yes' if you agree or 'no' if you decline.",
99100
"voice": {
100-
"voiceId": "Neha",
101-
"provider": "vapi"
101+
"provider": "vapi",
102+
"version": 2,
103+
"voiceId": "Neha"
102104
},
103105
"declineToolId": "09dd39cc-75f0-45eb-ace3-796ee3aa9c1e"
104106
}

fern/squads.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ To override the configuration of a saved assistant without modifying the underly
7979
"name": "Appointment Booking",
8080
"voice": {
8181
"provider": "vapi",
82+
"version": 2,
8283
"voiceId": "Elliot",
8384
},
8485
},
@@ -88,6 +89,7 @@ To override the configuration of a saved assistant without modifying the underly
8889
"assistantOverrides": {
8990
"voice": {
9091
"provider": "vapi",
92+
"version": 2,
9193
"voiceId": "Elliot",
9294
},
9395
}
@@ -107,6 +109,7 @@ You may also define inline tools via `assistantOverrides` through the `tools:app
107109
"name": "Appointment Booking",
108110
"voice": {
109111
"provider": "vapi",
112+
"version": 2,
110113
"voiceId": "Elliot",
111114
},
112115
},
@@ -152,6 +155,7 @@ Note: This is `squadOverrides` for the [`assistant-request`](api-reference/webho
152155
"name": "Appointment Booking",
153156
"voice": {
154157
"provider": "vapi",
158+
"version": 2,
155159
"voiceId": "Elliot",
156160
},
157161
},
@@ -163,6 +167,7 @@ Note: This is `squadOverrides` for the [`assistant-request`](api-reference/webho
163167
"memberOverrides": {
164168
"voice": {
165169
"provider": "vapi",
170+
"version": 2,
166171
"voiceId": "Elliot",
167172
},
168173
}
@@ -181,4 +186,3 @@ Note: This is `squadOverrides` for the [`assistant-request`](api-reference/webho
181186
**Engineer context carefully** - Use [context engineering](/tools/handoff#context-engineering) to control what conversation history is passed between assistants. As the context grows throughout the call, you may want to limit message history to reduce tokens, improve performance, and prevent context poisoning. Utilize [variable extraction](/tools/handoff#variable-extraction) to save information and generate summaries during a handoff to pass to other assistants.
182187

183188

184-

fern/tools/client-side-websdk.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function App() {
125125
},
126126
],
127127
},
128-
voice: { provider: 'vapi', voiceId: 'Elliot' },
128+
voice: { provider: 'vapi', version: 2, voiceId: 'Elliot' },
129129
transcriber: { provider: 'deepgram', model: 'nova-2', language: 'en' },
130130
name: 'Alex - Test',
131131
firstMessage: 'Hello.',

0 commit comments

Comments
 (0)