@vapi-ai/web 1.0.206 → 1.0.207

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.
Files changed (3) hide show
  1. package/dist/vapi.js +7 -0
  2. package/package.json +1 -1
  3. package/vapi.ts +8 -0
package/dist/vapi.js CHANGED
@@ -108,6 +108,13 @@ class Vapi extends events_1.default {
108
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
+ this.call.updateInputSettings({
112
+ audio: {
113
+ processor: {
114
+ type: "noise-cancellation",
115
+ },
116
+ },
117
+ });
111
118
  }))
112
119
  .catch((error) => {
113
120
  console.error(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vapi-ai/web",
3
- "version": "1.0.206",
3
+ "version": "1.0.207",
4
4
  "description": "",
5
5
  "main": "dist/vapi.js",
6
6
  "types": "dist/vapi.d.ts",
package/vapi.ts CHANGED
@@ -109,6 +109,14 @@ export default class Vapi extends EventEmitter {
109
109
  this.call.on("remote-participants-audio-level", (e) =>
110
110
  this.handleRemoteParticipantsAudioLevel(e)
111
111
  );
112
+
113
+ this.call.updateInputSettings({
114
+ audio: {
115
+ processor: {
116
+ type: "noise-cancellation",
117
+ },
118
+ },
119
+ });
112
120
  })
113
121
  .catch((error) => {
114
122
  console.error(error);