Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that Amazon Voice Focus only receives downmixed mono input. #1458

Merged
merged 2 commits into from
Jul 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions libs/voicefocus/worklet-inline-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions libs/voicefocus/worklet-worker-postMessage-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions libs/voicefocus/worklet-worker-sab-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down