@vapi-ai/web 1.0.201 → 1.0.203
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.ts +111 -61
- package/dist/api.d.ts +9 -10
- package/dist/vapi.js +1 -1
- package/package.json +1 -1
- package/vapi.ts +1 -1
package/api.ts
CHANGED
|
@@ -62,29 +62,46 @@ export interface CreateAssistantDTO {
|
|
|
62
62
|
/**
|
|
63
63
|
* This is the voice that will be used.
|
|
64
64
|
*
|
|
65
|
-
* Pro Voices:
|
|
65
|
+
* Pro Voices: `*-11labs`, `*-playht`, `*-rimeai`
|
|
66
66
|
*
|
|
67
|
-
* Basic Voices:
|
|
67
|
+
* Basic Voices: `*-azure`
|
|
68
68
|
*/
|
|
69
69
|
voice?:
|
|
70
|
-
| "davis"
|
|
71
|
-
| "jenny"
|
|
72
|
-
| "aria"
|
|
73
|
-
| "steffan"
|
|
74
|
-
| "sara"
|
|
75
|
-
| "jason"
|
|
76
|
-
| "burt"
|
|
77
|
-
| "andrea"
|
|
78
|
-
| "phillip"
|
|
79
|
-
| "steve"
|
|
80
|
-
| "joseph"
|
|
81
|
-
| "myra"
|
|
82
|
-
| "paula"
|
|
83
|
-
| "ryan"
|
|
84
|
-
| "drew"
|
|
85
|
-
| "paul"
|
|
86
|
-
| "mrb"
|
|
87
|
-
| "matilda"
|
|
70
|
+
| "davis-azure"
|
|
71
|
+
| "jenny-azure"
|
|
72
|
+
| "aria-azure"
|
|
73
|
+
| "steffan-azure"
|
|
74
|
+
| "sara-azure"
|
|
75
|
+
| "jason-azure"
|
|
76
|
+
| "burt-11labs"
|
|
77
|
+
| "andrea-11labs"
|
|
78
|
+
| "phillip-11labs"
|
|
79
|
+
| "steve-11labs"
|
|
80
|
+
| "joseph-11labs"
|
|
81
|
+
| "myra-11labs"
|
|
82
|
+
| "paula-11labs"
|
|
83
|
+
| "ryan-11labs"
|
|
84
|
+
| "drew-11labs"
|
|
85
|
+
| "paul-11labs"
|
|
86
|
+
| "mrb-11labs"
|
|
87
|
+
| "matilda-11labs"
|
|
88
|
+
| "jennifer-playht"
|
|
89
|
+
| "melissa-playht"
|
|
90
|
+
| "will-playht"
|
|
91
|
+
| "jack-playht"
|
|
92
|
+
| "ruby-playht"
|
|
93
|
+
| "davis-playht"
|
|
94
|
+
| "donna-playht"
|
|
95
|
+
| "kai-rimeai"
|
|
96
|
+
| "zion-rimeai"
|
|
97
|
+
| "xavier-rimeai"
|
|
98
|
+
| "marty-rimeai"
|
|
99
|
+
| "hudson-rimeai"
|
|
100
|
+
| "savannah-rimeai"
|
|
101
|
+
| "colette-rimeai"
|
|
102
|
+
| "daphne-rimeai"
|
|
103
|
+
| "aurora-rimeai"
|
|
104
|
+
| "nova-rimeai";
|
|
88
105
|
/** This is the assistant’s name, just for your own reference. */
|
|
89
106
|
name?: string;
|
|
90
107
|
/** This is the system prompt, which sets the objective and background before the call. */
|
|
@@ -123,7 +140,6 @@ export interface CreateWebCallDto {
|
|
|
123
140
|
|
|
124
141
|
export interface WebCallResponseDto {
|
|
125
142
|
url: string;
|
|
126
|
-
callId: string;
|
|
127
143
|
}
|
|
128
144
|
|
|
129
145
|
export interface Assistant {
|
|
@@ -132,29 +148,46 @@ export interface Assistant {
|
|
|
132
148
|
/**
|
|
133
149
|
* This is the voice that will be used.
|
|
134
150
|
*
|
|
135
|
-
* Pro Voices:
|
|
151
|
+
* Pro Voices: `*-11labs`, `*-playht`, `*-rimeai`
|
|
136
152
|
*
|
|
137
|
-
* Basic Voices:
|
|
153
|
+
* Basic Voices: `*-azure`
|
|
138
154
|
*/
|
|
139
155
|
voice?:
|
|
140
|
-
| "davis"
|
|
141
|
-
| "jenny"
|
|
142
|
-
| "aria"
|
|
143
|
-
| "steffan"
|
|
144
|
-
| "sara"
|
|
145
|
-
| "jason"
|
|
146
|
-
| "burt"
|
|
147
|
-
| "andrea"
|
|
148
|
-
| "phillip"
|
|
149
|
-
| "steve"
|
|
150
|
-
| "joseph"
|
|
151
|
-
| "myra"
|
|
152
|
-
| "paula"
|
|
153
|
-
| "ryan"
|
|
154
|
-
| "drew"
|
|
155
|
-
| "paul"
|
|
156
|
-
| "mrb"
|
|
157
|
-
| "matilda"
|
|
156
|
+
| "davis-azure"
|
|
157
|
+
| "jenny-azure"
|
|
158
|
+
| "aria-azure"
|
|
159
|
+
| "steffan-azure"
|
|
160
|
+
| "sara-azure"
|
|
161
|
+
| "jason-azure"
|
|
162
|
+
| "burt-11labs"
|
|
163
|
+
| "andrea-11labs"
|
|
164
|
+
| "phillip-11labs"
|
|
165
|
+
| "steve-11labs"
|
|
166
|
+
| "joseph-11labs"
|
|
167
|
+
| "myra-11labs"
|
|
168
|
+
| "paula-11labs"
|
|
169
|
+
| "ryan-11labs"
|
|
170
|
+
| "drew-11labs"
|
|
171
|
+
| "paul-11labs"
|
|
172
|
+
| "mrb-11labs"
|
|
173
|
+
| "matilda-11labs"
|
|
174
|
+
| "jennifer-playht"
|
|
175
|
+
| "melissa-playht"
|
|
176
|
+
| "will-playht"
|
|
177
|
+
| "jack-playht"
|
|
178
|
+
| "ruby-playht"
|
|
179
|
+
| "davis-playht"
|
|
180
|
+
| "donna-playht"
|
|
181
|
+
| "kai-rimeai"
|
|
182
|
+
| "zion-rimeai"
|
|
183
|
+
| "xavier-rimeai"
|
|
184
|
+
| "marty-rimeai"
|
|
185
|
+
| "hudson-rimeai"
|
|
186
|
+
| "savannah-rimeai"
|
|
187
|
+
| "colette-rimeai"
|
|
188
|
+
| "daphne-rimeai"
|
|
189
|
+
| "aurora-rimeai"
|
|
190
|
+
| "nova-rimeai";
|
|
158
191
|
/** Unique identifier for the assistant. */
|
|
159
192
|
id: string;
|
|
160
193
|
/** Unique identifier for the organization that this assistant belongs to. */
|
|
@@ -187,29 +220,46 @@ export interface UpdateAssistantDTO {
|
|
|
187
220
|
/**
|
|
188
221
|
* This is the voice that will be used.
|
|
189
222
|
*
|
|
190
|
-
* Pro Voices:
|
|
223
|
+
* Pro Voices: `*-11labs`, `*-playht`, `*-rimeai`
|
|
191
224
|
*
|
|
192
|
-
* Basic Voices:
|
|
225
|
+
* Basic Voices: `*-azure`
|
|
193
226
|
*/
|
|
194
227
|
voice?:
|
|
195
|
-
| "davis"
|
|
196
|
-
| "jenny"
|
|
197
|
-
| "aria"
|
|
198
|
-
| "steffan"
|
|
199
|
-
| "sara"
|
|
200
|
-
| "jason"
|
|
201
|
-
| "burt"
|
|
202
|
-
| "andrea"
|
|
203
|
-
| "phillip"
|
|
204
|
-
| "steve"
|
|
205
|
-
| "joseph"
|
|
206
|
-
| "myra"
|
|
207
|
-
| "paula"
|
|
208
|
-
| "ryan"
|
|
209
|
-
| "drew"
|
|
210
|
-
| "paul"
|
|
211
|
-
| "mrb"
|
|
212
|
-
| "matilda"
|
|
228
|
+
| "davis-azure"
|
|
229
|
+
| "jenny-azure"
|
|
230
|
+
| "aria-azure"
|
|
231
|
+
| "steffan-azure"
|
|
232
|
+
| "sara-azure"
|
|
233
|
+
| "jason-azure"
|
|
234
|
+
| "burt-11labs"
|
|
235
|
+
| "andrea-11labs"
|
|
236
|
+
| "phillip-11labs"
|
|
237
|
+
| "steve-11labs"
|
|
238
|
+
| "joseph-11labs"
|
|
239
|
+
| "myra-11labs"
|
|
240
|
+
| "paula-11labs"
|
|
241
|
+
| "ryan-11labs"
|
|
242
|
+
| "drew-11labs"
|
|
243
|
+
| "paul-11labs"
|
|
244
|
+
| "mrb-11labs"
|
|
245
|
+
| "matilda-11labs"
|
|
246
|
+
| "jennifer-playht"
|
|
247
|
+
| "melissa-playht"
|
|
248
|
+
| "will-playht"
|
|
249
|
+
| "jack-playht"
|
|
250
|
+
| "ruby-playht"
|
|
251
|
+
| "davis-playht"
|
|
252
|
+
| "donna-playht"
|
|
253
|
+
| "kai-rimeai"
|
|
254
|
+
| "zion-rimeai"
|
|
255
|
+
| "xavier-rimeai"
|
|
256
|
+
| "marty-rimeai"
|
|
257
|
+
| "hudson-rimeai"
|
|
258
|
+
| "savannah-rimeai"
|
|
259
|
+
| "colette-rimeai"
|
|
260
|
+
| "daphne-rimeai"
|
|
261
|
+
| "aurora-rimeai"
|
|
262
|
+
| "nova-rimeai";
|
|
213
263
|
/** This is the assistant’s name, just for your own reference. */
|
|
214
264
|
name?: string;
|
|
215
265
|
/** This is the system prompt, which sets the objective and background before the call. */
|
package/dist/api.d.ts
CHANGED
|
@@ -47,11 +47,11 @@ export interface CreateAssistantDTO {
|
|
|
47
47
|
/**
|
|
48
48
|
* This is the voice that will be used.
|
|
49
49
|
*
|
|
50
|
-
* Pro Voices:
|
|
50
|
+
* Pro Voices: `*-11labs`, `*-playht`, `*-rimeai`
|
|
51
51
|
*
|
|
52
|
-
* Basic Voices:
|
|
52
|
+
* Basic Voices: `*-azure`
|
|
53
53
|
*/
|
|
54
|
-
voice?: "davis" | "jenny" | "aria" | "steffan" | "sara" | "jason" | "burt" | "andrea" | "phillip" | "steve" | "joseph" | "myra" | "paula" | "ryan" | "drew" | "paul" | "mrb" | "matilda";
|
|
54
|
+
voice?: "davis-azure" | "jenny-azure" | "aria-azure" | "steffan-azure" | "sara-azure" | "jason-azure" | "burt-11labs" | "andrea-11labs" | "phillip-11labs" | "steve-11labs" | "joseph-11labs" | "myra-11labs" | "paula-11labs" | "ryan-11labs" | "drew-11labs" | "paul-11labs" | "mrb-11labs" | "matilda-11labs" | "jennifer-playht" | "melissa-playht" | "will-playht" | "jack-playht" | "ruby-playht" | "davis-playht" | "donna-playht" | "kai-rimeai" | "zion-rimeai" | "xavier-rimeai" | "marty-rimeai" | "hudson-rimeai" | "savannah-rimeai" | "colette-rimeai" | "daphne-rimeai" | "aurora-rimeai" | "nova-rimeai";
|
|
55
55
|
/** This is the assistant’s name, just for your own reference. */
|
|
56
56
|
name?: string;
|
|
57
57
|
/** This is the system prompt, which sets the objective and background before the call. */
|
|
@@ -87,7 +87,6 @@ export interface CreateWebCallDto {
|
|
|
87
87
|
}
|
|
88
88
|
export interface WebCallResponseDto {
|
|
89
89
|
url: string;
|
|
90
|
-
callId: string;
|
|
91
90
|
}
|
|
92
91
|
export interface Assistant {
|
|
93
92
|
/** This is the OpenAI model that will be used. */
|
|
@@ -95,11 +94,11 @@ export interface Assistant {
|
|
|
95
94
|
/**
|
|
96
95
|
* This is the voice that will be used.
|
|
97
96
|
*
|
|
98
|
-
* Pro Voices:
|
|
97
|
+
* Pro Voices: `*-11labs`, `*-playht`, `*-rimeai`
|
|
99
98
|
*
|
|
100
|
-
* Basic Voices:
|
|
99
|
+
* Basic Voices: `*-azure`
|
|
101
100
|
*/
|
|
102
|
-
voice?: "davis" | "jenny" | "aria" | "steffan" | "sara" | "jason" | "burt" | "andrea" | "phillip" | "steve" | "joseph" | "myra" | "paula" | "ryan" | "drew" | "paul" | "mrb" | "matilda";
|
|
101
|
+
voice?: "davis-azure" | "jenny-azure" | "aria-azure" | "steffan-azure" | "sara-azure" | "jason-azure" | "burt-11labs" | "andrea-11labs" | "phillip-11labs" | "steve-11labs" | "joseph-11labs" | "myra-11labs" | "paula-11labs" | "ryan-11labs" | "drew-11labs" | "paul-11labs" | "mrb-11labs" | "matilda-11labs" | "jennifer-playht" | "melissa-playht" | "will-playht" | "jack-playht" | "ruby-playht" | "davis-playht" | "donna-playht" | "kai-rimeai" | "zion-rimeai" | "xavier-rimeai" | "marty-rimeai" | "hudson-rimeai" | "savannah-rimeai" | "colette-rimeai" | "daphne-rimeai" | "aurora-rimeai" | "nova-rimeai";
|
|
103
102
|
/** Unique identifier for the assistant. */
|
|
104
103
|
id: string;
|
|
105
104
|
/** Unique identifier for the organization that this assistant belongs to. */
|
|
@@ -131,11 +130,11 @@ export interface UpdateAssistantDTO {
|
|
|
131
130
|
/**
|
|
132
131
|
* This is the voice that will be used.
|
|
133
132
|
*
|
|
134
|
-
* Pro Voices:
|
|
133
|
+
* Pro Voices: `*-11labs`, `*-playht`, `*-rimeai`
|
|
135
134
|
*
|
|
136
|
-
* Basic Voices:
|
|
135
|
+
* Basic Voices: `*-azure`
|
|
137
136
|
*/
|
|
138
|
-
voice?: "davis" | "jenny" | "aria" | "steffan" | "sara" | "jason" | "burt" | "andrea" | "phillip" | "steve" | "joseph" | "myra" | "paula" | "ryan" | "drew" | "paul" | "mrb" | "matilda";
|
|
137
|
+
voice?: "davis-azure" | "jenny-azure" | "aria-azure" | "steffan-azure" | "sara-azure" | "jason-azure" | "burt-11labs" | "andrea-11labs" | "phillip-11labs" | "steve-11labs" | "joseph-11labs" | "myra-11labs" | "paula-11labs" | "ryan-11labs" | "drew-11labs" | "paul-11labs" | "mrb-11labs" | "matilda-11labs" | "jennifer-playht" | "melissa-playht" | "will-playht" | "jack-playht" | "ruby-playht" | "davis-playht" | "donna-playht" | "kai-rimeai" | "zion-rimeai" | "xavier-rimeai" | "marty-rimeai" | "hudson-rimeai" | "savannah-rimeai" | "colette-rimeai" | "daphne-rimeai" | "aurora-rimeai" | "nova-rimeai";
|
|
139
138
|
/** This is the assistant’s name, just for your own reference. */
|
|
140
139
|
name?: string;
|
|
141
140
|
/** This is the system prompt, which sets the objective and background before the call. */
|
package/dist/vapi.js
CHANGED
|
@@ -105,7 +105,7 @@ class Vapi extends events_1.default {
|
|
|
105
105
|
return;
|
|
106
106
|
subscribeToTracks(e, this.call);
|
|
107
107
|
});
|
|
108
|
-
yield this.call.join({ url });
|
|
108
|
+
yield this.call.join({ url, subscribeToTracksAutomatically: false });
|
|
109
109
|
this.call.startRemoteParticipantsAudioLevelObserver();
|
|
110
110
|
this.call.on("remote-participants-audio-level", (e) => this.handleRemoteParticipantsAudioLevel(e));
|
|
111
111
|
}))
|
package/package.json
CHANGED
package/vapi.ts
CHANGED
|
@@ -103,7 +103,7 @@ export default class Vapi extends EventEmitter {
|
|
|
103
103
|
subscribeToTracks(e, this.call);
|
|
104
104
|
});
|
|
105
105
|
|
|
106
|
-
await this.call.join({ url });
|
|
106
|
+
await this.call.join({ url, subscribeToTracksAutomatically: false });
|
|
107
107
|
|
|
108
108
|
this.call.startRemoteParticipantsAudioLevelObserver();
|
|
109
109
|
this.call.on("remote-participants-audio-level", (e) =>
|