@vapi-ai/web 1.0.98 → 1.0.100
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/dist/player.js +4 -5
- package/dist/vapi.js +1 -1
- package/package.json +1 -1
- package/player.ts +4 -6
- package/vapi.ts +1 -1
package/dist/player.js
CHANGED
|
@@ -78,11 +78,10 @@ class ContinuousPlayer extends events_1.default {
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
clear() {
|
|
81
|
-
if (!this.sourceBuffer)
|
|
82
|
-
|
|
83
|
-
this.
|
|
84
|
-
this.operationsQueue.
|
|
85
|
-
this.operationsQueue = this.createOperationQueue();
|
|
81
|
+
// if (!this.sourceBuffer) return;
|
|
82
|
+
// this.sourceBuffer.abort();
|
|
83
|
+
// this.operationsQueue.kill();
|
|
84
|
+
// this.operationsQueue = this.createOperationQueue();
|
|
86
85
|
// this.operationsQueue.push(() => this.removeBuffer());
|
|
87
86
|
// this.operationsQueue.push(() => this.resetTimestampOffset());
|
|
88
87
|
}
|
package/dist/vapi.js
CHANGED
|
@@ -54,7 +54,7 @@ class Vapi extends events_1.default {
|
|
|
54
54
|
startRecording() {
|
|
55
55
|
navigator.mediaDevices.getUserMedia({ audio: true }).then((stream) => {
|
|
56
56
|
this.mediaRecorder = new MediaRecorder(stream, {
|
|
57
|
-
mimeType: "audio/webm
|
|
57
|
+
mimeType: "audio/webm",
|
|
58
58
|
});
|
|
59
59
|
this.mediaRecorder.start(100);
|
|
60
60
|
this.mediaRecorder.ondataavailable = (event) => {
|
package/package.json
CHANGED
package/player.ts
CHANGED
|
@@ -101,12 +101,10 @@ export class ContinuousPlayer extends EventEmitter {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
clear() {
|
|
104
|
-
if (!this.sourceBuffer) return;
|
|
105
|
-
this.sourceBuffer.abort();
|
|
106
|
-
|
|
107
|
-
this.operationsQueue.
|
|
108
|
-
this.operationsQueue = this.createOperationQueue();
|
|
109
|
-
|
|
104
|
+
// if (!this.sourceBuffer) return;
|
|
105
|
+
// this.sourceBuffer.abort();
|
|
106
|
+
// this.operationsQueue.kill();
|
|
107
|
+
// this.operationsQueue = this.createOperationQueue();
|
|
110
108
|
// this.operationsQueue.push(() => this.removeBuffer());
|
|
111
109
|
// this.operationsQueue.push(() => this.resetTimestampOffset());
|
|
112
110
|
}
|
package/vapi.ts
CHANGED
|
@@ -59,7 +59,7 @@ export default class Vapi extends EventEmitter {
|
|
|
59
59
|
private startRecording(): void {
|
|
60
60
|
navigator.mediaDevices.getUserMedia({ audio: true }).then((stream) => {
|
|
61
61
|
this.mediaRecorder = new MediaRecorder(stream, {
|
|
62
|
-
mimeType: "audio/webm
|
|
62
|
+
mimeType: "audio/webm",
|
|
63
63
|
});
|
|
64
64
|
|
|
65
65
|
this.mediaRecorder.start(100);
|