opensips-js 0.1.16 → 0.1.17

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 CHANGED
@@ -266,11 +266,11 @@ const opensipsJS = new OpenSIPSJS({
266
266
  // ... other configuration
267
267
  noiseReductionOptions: {
268
268
  mode: 'dynamic', // or 'enabled'
269
+ vadModule: VAD, // Inject the VAD module
269
270
  noiseThreshold: 0.004,
270
271
  checkEveryMs: 500,
271
272
  noiseCheckInterval: 2000
272
- },
273
- vadModule: VAD // Inject the VAD module
273
+ }
274
274
  },
275
275
  // ... rest of configuration
276
276
  })
package/dist/index.d.ts CHANGED
@@ -779,6 +779,7 @@ declare type NoiseReductionMode = 'disabled' | 'enabled' | 'dynamic'
779
779
 
780
780
  declare interface NoiseReductionOptions {
781
781
  mode: NoiseReductionMode,
782
+ vadModule?: VADModule
782
783
  vadConfig?: Partial<VADOptions>
783
784
  noiseThreshold?: number
784
785
  checkEveryMs?: number
@@ -979,7 +980,6 @@ declare type UAConfigurationExtended = UAConfiguration & {
979
980
  overrideUserAgent?: (userAgent: string) => string
980
981
  noiseReductionOptions?: NoiseReductionOptions
981
982
  onTransportCallback?: OnTransportCallback
982
- vadModule?: VADModule
983
983
  }
984
984
 
985
985
  declare const UAConstructor: typeof UA;