diff --git a/CHANGELOG.md b/CHANGELOG.md index 0706c34b58..823fc6b7b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improve the meeting event guide. - Fixed Project Board guide with correct community template link. - Updated Amazon Voice Focus integration guide to reflect recent Safari versions. +- Import current Amazon Voice Focus code, which ensures that stereo inputs are downmixed to mono. ## [2.13.0] - 2021-06-29 diff --git a/libs/voicefocus/worklet-inline-node.js b/libs/voicefocus/worklet-inline-node.js index f7daf628ee..6e2bde52b9 100644 --- a/libs/voicefocus/worklet-inline-node.js +++ b/libs/voicefocus/worklet-inline-node.js @@ -14,6 +14,8 @@ const types_js_1 = require("./types.js"); class VoiceFocusInlineNode extends types_js_1.VoiceFocusAudioWorkletNode { constructor(context, options) { super(context, options.processor, options); + this.channelCountMode = 'explicit'; + this.channelCount = 1; const { modelURL, worker, fetchBehavior, logger, } = options; this.logger = logger; this.port.onmessage = this.onProcessorMessage.bind(this); diff --git a/libs/voicefocus/worklet-worker-postMessage-node.js b/libs/voicefocus/worklet-worker-postMessage-node.js index 5c9a581737..13fd6e7151 100644 --- a/libs/voicefocus/worklet-worker-postMessage-node.js +++ b/libs/voicefocus/worklet-worker-postMessage-node.js @@ -14,6 +14,8 @@ const types_js_1 = require("./types.js"); class VoiceFocusWorkerPostMessageNode extends types_js_1.VoiceFocusAudioWorkletNode { constructor(context, options) { super(context, options.processor, options); + this.channelCountMode = 'explicit'; + this.channelCount = 1; const { modelURL, audioBufferURL, worker, fetchBehavior, delegate, } = options; this.delegate = delegate; this.worker = worker; diff --git a/libs/voicefocus/worklet-worker-sab-node.js b/libs/voicefocus/worklet-worker-sab-node.js index d313758f97..2a21ae4fba 100644 --- a/libs/voicefocus/worklet-worker-sab-node.js +++ b/libs/voicefocus/worklet-worker-sab-node.js @@ -23,6 +23,8 @@ const STATES = { class VoiceFocusWorkerBufferNode extends types_js_1.VoiceFocusAudioWorkletNode { constructor(context, options) { super(context, options.processor, options); + this.channelCountMode = 'explicit'; + this.channelCount = 1; const { modelURL, resamplerURL, worker, fetchBehavior, delegate, } = options; this.delegate = delegate; this.worker = worker;