opensips-js-vue 0.1.10 → 0.1.11

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.
@@ -243,6 +243,7 @@ export declare type NoiseReductionMode = 'disabled' | 'enabled' | 'dynamic'
243
243
 
244
244
  export declare interface NoiseReductionOptions {
245
245
  mode: NoiseReductionMode,
246
+ vadModule?: VADModule
246
247
  vadConfig?: Partial<VADOptions>
247
248
  noiseThreshold?: number
248
249
  checkEveryMs?: number
@@ -413,7 +414,6 @@ export declare type UAConfigurationExtended = UAConfiguration & {
413
414
  overrideUserAgent?: (userAgent: string) => string
414
415
  noiseReductionOptions?: NoiseReductionOptions
415
416
  onTransportCallback?: OnTransportCallback
416
- vadModule?: VADModule
417
417
  }
418
418
 
419
419
  export declare type updateRoomListener = (value: RoomChangeEmitType_2) => void
package/library/super.mjs CHANGED
@@ -23443,7 +23443,7 @@ const Qo = {
23443
23443
  }, Vy = 0;
23444
23444
  class By {
23445
23445
  constructor(n) {
23446
- var s;
23446
+ var s, i;
23447
23447
  if (this.isAutoAnswer = !1, this.muteWhenJoinEnabled = !1, this.isDNDEnabled = !1, this.isCallWaitingEnabled = !0, this.muted = !1, this.microphoneInputLevelValue = 1, this.speakerVolumeValue = 1, this.activeRooms = {}, this.activeCalls = {}, this.extendedCalls = {}, this.conferenceNodes = {}, this.availableMediaDevices = [], this.selectedMediaDevices = {
23448
23448
  input: "default",
23449
23449
  output: "default"
@@ -23455,8 +23455,8 @@ class By {
23455
23455
  ), this.VUMeter = new jy({
23456
23456
  onChangeFunction: this.emitVolumeChange.bind(this)
23457
23457
  }), this.processVADConfiguration(), this.initializeMediaDevices(), ["enabled", "dynamic"].includes(this.noiseReduction.mode)) {
23458
- const i = (s = this.context.options.configuration) == null ? void 0 : s.vadModule;
23459
- i && i.MicVAD ? (this.MicVAD = i.MicVAD, console.log("✅ VAD module loaded successfully")) : (console.warn("⚠️ Noise reduction is enabled but VAD module is not provided. To use VAD features, please install @ricky0123/vad-web and pass it via configuration.vadModule option."), this.noiseReduction.mode = "disabled");
23458
+ const a = (i = (s = this.context.options.configuration) == null ? void 0 : s.noiseReductionOptions) == null ? void 0 : i.vadModule;
23459
+ a && a.MicVAD ? (this.MicVAD = a.MicVAD, console.log("✅ VAD module loaded successfully")) : (console.warn("⚠️ Noise reduction is enabled but VAD module is not provided. To use VAD features, please install @ricky0123/vad-web and pass it via configuration.noiseReductionOptions.vadModule option."), this.noiseReduction.mode = "disabled");
23460
23460
  }
23461
23461
  }
23462
23462
  processVADConfiguration() {