Skip to content

Commit d3c9bc3

Browse files
committed
fix: replace voice_id with voiceId in examples
1 parent a1616da commit d3c9bc3

File tree

5 files changed

+27
-33
lines changed

5 files changed

+27
-33
lines changed

fern/assistants/examples/docs-agent.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Guidelines:
137137
// Configure voice settings
138138
voice={
139139
"provider": "vapi",
140-
"voice_id": "Harry"
140+
"voiceId": "Harry"
141141
},
142142
// Configure transcription
143143
transcriber={
@@ -274,7 +274,7 @@ Guidelines:
274274
// Configure voice settings
275275
voice: {
276276
provider: "vapi",
277-
voice_id: "Harry"
277+
voiceId: "Harry"
278278
},
279279
// Configure transcription
280280
transcriber: {
@@ -341,7 +341,7 @@ Guidelines:
341341
// Configure voice settings
342342
voice={
343343
"provider": "vapi",
344-
"voice_id": "Harry"
344+
"voiceId": "Harry"
345345
},
346346
// Configure transcription
347347
transcriber={

fern/assistants/examples/inbound-support.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ We will be creating a customer support agent for VapiBank, a bank that wants to
159159
},
160160
voice: {
161161
provider: "11labs",
162-
voice_id: "burt"
162+
voiceId: "burt"
163163
}
164164
});
165165

@@ -193,7 +193,7 @@ We will be creating a customer support agent for VapiBank, a bank that wants to
193193
},
194194
"voice": {
195195
"provider": "11labs",
196-
"voice_id": "burt"
196+
"voiceId": "burt"
197197
}
198198
}
199199

@@ -222,7 +222,7 @@ We will be creating a customer support agent for VapiBank, a bank that wants to
222222
},
223223
"voice": {
224224
"provider": "11labs",
225-
"voice_id": "burt"
225+
"voiceId": "burt"
226226
}
227227
}'
228228
```

fern/assistants/examples/voice-widget.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ const EcommerceSupportWidget = () => {
382382
greeting: 'Hi! Need help with your order?',
383383
voice: {
384384
provider: 'playht',
385-
voice_id: 'jennifer',
385+
voiceId: 'jennifer',
386386
},
387387
}}
388388
/>
@@ -403,7 +403,7 @@ const HealthcareWidget = () => {
403403
greeting: 'Hello! I can help schedule your appointment.',
404404
voice: {
405405
provider: 'playht',
406-
voice_id: 'jennifer',
406+
voiceId: 'jennifer',
407407
},
408408
}}
409409
/>

fern/quickstart/phone.mdx

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ vapi assistant create
105105
model: 'gpt-4o',
106106
messages: [{ role: 'system', content: 'You are Alex, a customer service voice assistant for TechSolutions.' }]
107107
},
108-
voice: { provider: '11labs', voice_id: 'cgSgspJ2msm6clMCkdW9' },
108+
voice: { provider: '11labs', voiceId: 'cgSgspJ2msm6clMCkdW9' },
109109
firstMessage: 'Hi there, this is Alex from TechSolutions customer support. How can I help you today?'
110110
});
111111

@@ -137,7 +137,7 @@ vapi assistant create
137137
"model": "gpt-4o",
138138
"messages": [{"role": "system", "content": "You are Alex, a customer service voice assistant for TechSolutions."}],
139139
},
140-
voice={"provider": "11labs", "voice_id": "cgSgspJ2msm6clMCkdW9"},
140+
voice={"provider": "11labs", "voiceId": "cgSgspJ2msm6clMCkdW9"},
141141
first_message="Hi there, this is Alex from TechSolutions customer support. How can I help you today?",
142142
)
143143

@@ -161,7 +161,7 @@ vapi assistant create
161161
"model": "gpt-4o",
162162
"messages": [{ "role": "system", "content": "You are Alex, a customer service voice assistant for TechSolutions." }]
163163
},
164-
"voice": { "provider": "11labs", "voice_id": "cgSgspJ2msm6clMCkdW9" },
164+
"voice": { "provider": "11labs", "voiceId": "cgSgspJ2msm6clMCkdW9" },
165165
"firstMessage": "Hi there, this is Alex from TechSolutions customer support. How can I help you today?"
166166
}'
167167
```
@@ -273,21 +273,19 @@ vapi assistant create
273273
Call the phone number you just created. Your assistant will pick up and start the conversation with your configured first message.
274274
</Step>
275275

276-
<Step title="Try outbound calling">
277-
**Using the Dashboard:**
278-
279-
In the dashboard, go to the outbound calls section:
280-
1. Enter your own phone number as the target
281-
2. Select your assistant
282-
3. Click "Make Call"
283-
284-
<Frame caption="Making an outbound call">
285-
<img src="../static/gifs/outbound-call.gif" />
286-
</Frame>
287-
288-
**Using the SDK:**
289-
276+
<Step title="Place an outbound call">
290277
<Tabs>
278+
<Tab title="Dashboard">
279+
In the dashboard, go to the outbound calls section:
280+
1. Enter your own phone number as the target
281+
2. Select your assistant
282+
3. Click "Make Call"
283+
284+
<Frame caption="Making an outbound call">
285+
<img src="../static/gifs/outbound-call.gif" />
286+
</Frame>
287+
</Tab>
288+
291289
<Tab title="TypeScript (Server SDK)">
292290
```typescript
293291
const call = await vapi.calls.create({
@@ -316,13 +314,9 @@ vapi assistant create
316314
-H "Authorization: Bearer $VAPI_API_KEY" \
317315
-H "Content-Type: application/json" \
318316
-d '{
319-
"assistant": {
320-
"assistantId": "your-assistant-id"
321-
},
317+
"assistant": { "assistantId": "your-assistant-id" },
322318
"phoneNumberId": "your-phone-number-id",
323-
"customer": {
324-
"number": "+1234567890"
325-
}
319+
"customer": { "number": "+1234567890" }
326320
}'
327321
```
328322
</Tab>

fern/quickstart/web.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ Automate outbound calls and handle inbound call processing with server-side SDKs
676676
},
677677
voice={
678678
"provider": "11labs",
679-
"voice_id": "21m00Tcm4TlvDq8ikWAM"
679+
"voiceId": "21m00Tcm4TlvDq8ikWAM"
680680
}
681681
)
682682
```
@@ -720,7 +720,7 @@ Automate outbound calls and handle inbound call processing with server-side SDKs
720720
},
721721
voice: {
722722
provider: "11labs",
723-
voice_id: "21m00Tcm4TlvDq8ikWAM"
723+
voiceId: "21m00Tcm4TlvDq8ikWAM"
724724
}
725725
)
726726
```

0 commit comments

Comments
 (0)