@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 CHANGED
@@ -78,11 +78,10 @@ class ContinuousPlayer extends events_1.default {
78
78
  });
79
79
  }
80
80
  clear() {
81
- if (!this.sourceBuffer)
82
- return;
83
- this.sourceBuffer.abort();
84
- this.operationsQueue.kill();
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;codecs=opus",
57
+ mimeType: "audio/webm",
58
58
  });
59
59
  this.mediaRecorder.start(100);
60
60
  this.mediaRecorder.ondataavailable = (event) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vapi-ai/web",
3
- "version": "1.0.98",
3
+ "version": "1.0.100",
4
4
  "description": "",
5
5
  "main": "dist/vapi.js",
6
6
  "types": "dist/vapi.d.ts",
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.kill();
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;codecs=opus",
62
+ mimeType: "audio/webm",
63
63
  });
64
64
 
65
65
  this.mediaRecorder.start(100);