@vapi-ai/web 1.1.3 → 1.1.4
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/README.md +4 -4
- package/api.ts +5 -0
- package/dist/api.d.ts +5 -0
- package/dist/vapi.js +2 -2
- package/package.json +1 -1
- package/vapi.ts +2 -2
package/README.md
CHANGED
|
@@ -63,10 +63,10 @@ const assistantOverrides = {
|
|
|
63
63
|
},
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
vapi.start(
|
|
67
|
-
|
|
68
|
-
assistantOverrides
|
|
69
|
-
|
|
66
|
+
vapi.start(
|
|
67
|
+
'your-assistant-id',
|
|
68
|
+
assistantOverrides,
|
|
69
|
+
);
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
You can send text messages to the assistant aside from the audio input using the `send` method and passing appropriate `role` and `content`.
|
package/api.ts
CHANGED
|
@@ -750,6 +750,11 @@ export interface ElevenLabsVoice {
|
|
|
750
750
|
* @max 4
|
|
751
751
|
* @example 4
|
|
752
752
|
*/
|
|
753
|
+
enableSsmlParsing?: boolean;
|
|
754
|
+
/**
|
|
755
|
+
* Defines whether SSML parsing is enabled.
|
|
756
|
+
* @example true
|
|
757
|
+
*/
|
|
753
758
|
optimizeStreamingLatency?: number;
|
|
754
759
|
/**
|
|
755
760
|
* This is the model that will be used. Defaults to 'eleven_multilingual_v2' if transcriber.language is non-English, otherwise 'eleven_turbo_v2'.
|
package/dist/api.d.ts
CHANGED
|
@@ -483,6 +483,11 @@ export interface ElevenLabsVoice {
|
|
|
483
483
|
* @max 4
|
|
484
484
|
* @example 4
|
|
485
485
|
*/
|
|
486
|
+
enableSsmlParsing?: boolean;
|
|
487
|
+
/**
|
|
488
|
+
* Defines whether SSML parsing is enabled.
|
|
489
|
+
* @example true
|
|
490
|
+
*/
|
|
486
491
|
optimizeStreamingLatency?: number;
|
|
487
492
|
/**
|
|
488
493
|
* This is the model that will be used. Defaults to 'eleven_multilingual_v2' if transcriber.language is non-English, otherwise 'eleven_turbo_v2'.
|
package/dist/vapi.js
CHANGED
|
@@ -100,8 +100,8 @@ class Vapi extends VapiEventEmitter {
|
|
|
100
100
|
return;
|
|
101
101
|
destroyAudioPlayer(e.participant.session_id);
|
|
102
102
|
});
|
|
103
|
-
this.call.on('error', () => {
|
|
104
|
-
|
|
103
|
+
this.call.on('error', (error) => {
|
|
104
|
+
this.emit('error', error);
|
|
105
105
|
});
|
|
106
106
|
this.call.on('track-started', async (e) => {
|
|
107
107
|
if (!e || !e.participant)
|
package/package.json
CHANGED
package/vapi.ts
CHANGED
|
@@ -150,8 +150,8 @@ export default class Vapi extends VapiEventEmitter {
|
|
|
150
150
|
destroyAudioPlayer(e.participant.session_id);
|
|
151
151
|
});
|
|
152
152
|
|
|
153
|
-
this.call.on('error', () => {
|
|
154
|
-
|
|
153
|
+
this.call.on('error', (error: any) => {
|
|
154
|
+
this.emit('error', error);
|
|
155
155
|
});
|
|
156
156
|
|
|
157
157
|
this.call.on('track-started', async (e) => {
|