Skip to content

Commit 9e53b13

Browse files
authored
Simplify TS code snippets on phone quickstart (#632)
* chore(quickstart/phone): simplify code snippets * fix: replace `voice_id` with `voiceId` in examples
1 parent 59ae122 commit 9e53b13

File tree

5 files changed

+104
-253
lines changed

5 files changed

+104
-253
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
/>

0 commit comments

Comments
 (0)