Skip to content

Commit

Permalink
Updated the documentation for Echo Reduction (#1848)
Browse files Browse the repository at this point in the history
* Updated the documentation for Echo Reduction

* Updated the Echo Reduction webpage

* Updated the Echo Reduction documentation

* Updated the Echo Reduction guide

Co-authored-by: Venkatesh Devale <61809205+devalevenkatesh@users.noreply.github.com>
  • Loading branch information
jhaarpan and devalevenkatesh authored Dec 8, 2021
1 parent fc2955a commit 2795a54
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ The following developer guides cover specific topics for a technical audience.
- [Quality, Bandwidth, and Connectivity](https://aws.github.io/amazon-chime-sdk-js/modules/qualitybandwidth_connectivity.html)
- [Simulcast](https://aws.github.io/amazon-chime-sdk-js/modules/simulcast.html)
- [Meeting Events](https://aws.github.io/amazon-chime-sdk-js/modules/meetingevents.html)
- [Integrating Amazon Voice Focus Into Your Application](https://aws.github.io/amazon-chime-sdk-js/modules/amazonvoice_focus.html)
- [Integrating Amazon Voice Focus and Echo Reduction Into Your Application](https://aws.github.io/amazon-chime-sdk-js/modules/amazonvoice_focus.html)
- [Adding Frame-By-Frame Processing to an Outgoing Video Stream](https://aws.github.io/amazon-chime-sdk-js/modules/videoprocessor.html)
- [Adding Background Filtering to an Outgoing Video Stream](https://aws.github.io/amazon-chime-sdk-js/modules/backgroundfilter_video_processor.html)
- [Adapting Video to Limited Bandwidth Using a Priority-Based Video Downlink Policy](https://aws.github.io/amazon-chime-sdk-js/modules/prioritybased_downlink_policy.html)
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ <h2>JavaScript SDK Guides</h2>
<li><a href="https://aws.github.io/amazon-chime-sdk-js/modules/qualitybandwidth_connectivity.html">Quality, Bandwidth, and Connectivity</a></li>
<li><a href="https://aws.github.io/amazon-chime-sdk-js/modules/simulcast.html">Simulcast</a></li>
<li><a href="https://aws.github.io/amazon-chime-sdk-js/modules/meetingevents.html">Meeting Events</a></li>
<li><a href="https://aws.github.io/amazon-chime-sdk-js/modules/amazonvoice_focus.html">Integrating Amazon Voice Focus Into Your Application</a></li>
<li><a href="https://aws.github.io/amazon-chime-sdk-js/modules/amazonvoice_focus.html">Integrating Amazon Voice Focus and Echo Reduction Into Your Application</a></li>
<li><a href="https://aws.github.io/amazon-chime-sdk-js/modules/videoprocessor.html">Adding Frame-By-Frame Processing to an Outgoing Video Stream</a></li>
<li><a href="https://aws.github.io/amazon-chime-sdk-js/modules/backgroundfilter_video_processor.html">Adding Background Filtering to an Outgoing Video Stream</a></li>
<li><a href="https://aws.github.io/amazon-chime-sdk-js/modules/prioritybased_downlink_policy.html">Adapting Video to Limited Bandwidth Using a Priority-Based Video Downlink Policy</a></li>
Expand Down
18 changes: 13 additions & 5 deletions docs/modules/amazonvoice_focus.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h2>What is Amazon Voice Focus?</h2>
<a href="#what-is-echo-reduction" id="what-is-echo-reduction" style="color: inherit; text-decoration: none;">
<h2>What is Echo Reduction?</h2>
</a>
<p>Echo reduction helps keep echoessounds from a user’s loudspeaker that get picked up by their microphone—from circulating back into meeting audio and bringing discussions to a standstill. The echo reduction feature is available in conjunction with the noise reduction provided by Amazon Voice Focus.</p>
<p>Echo reduction helps keep echoes and sounds from a user’s loudspeaker that get picked up by their microphone—from circulating back into meeting audio and bringing discussions to a standstill. The echo reduction feature is available in conjunction with the noise reduction provided by Amazon Voice Focus.</p>
<p>Echo reduction is enabled at the meeting level when you call the CreateMeeting or CreateMeetingWithAttendees APIs. Enabling the feature this way allows others who join the meeting to enable echo reduction as desired.</p>
<p>The feature is integrated into the <code>browser</code> demo application. To try it out, launch the demo with <code>npm run start</code>, choose “Web Audio” and “Use Echo Reduction (new meetings only)” on the first screen, then either check the “Voice Focus” box in the lobby view, or click “Voice Focus” in the device picker after joining the meeting.</p>
<p>Amazon Chime Echo Reduction is a premium feature, please refer to the <a href="https://aws.amazon.com/chime/pricing/#Chime_SDK_">Pricing</a> page for details.</p>
Expand Down Expand Up @@ -338,12 +338,20 @@ <h2>Configuration</h2>
<a href="#enabling-voice-focus-with-echo-reduction" id="enabling-voice-focus-with-echo-reduction" style="color: inherit; text-decoration: none;">
<h2>Enabling Voice Focus with Echo Reduction</h2>
</a>
<blockquote>
<p>⚠️ To use the Echo Reduction feature, you must migrate to the <a href="https://docs.aws.amazon.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_Meetings.html">Amazon Chime SDK Meetings</a> namespace. To do so, you can follow the steps in the <a href="https://docs.aws.amazon.com/chime/latest/dg/meeting-namespace-migration.html">Migrating to the Amazon Chime SDK Meetings namespace</a>.</p>
</blockquote>
<p>Enabling Voice Focus with Echo Reduction is a two step process:</p>
<a href="#1-creating-a-meeting-with-support-for-echo-reduction" id="1-creating-a-meeting-with-support-for-echo-reduction" style="color: inherit; text-decoration: none;">
<h3>1. Creating a meeting with support for Echo Reduction</h3>
<a href="#1-create-a-meeting-with-support-for-echo-reduction-using-amazon-chime-sdk-meetings-namespace" id="1-create-a-meeting-with-support-for-echo-reduction-using-amazon-chime-sdk-meetings-namespace" style="color: inherit; text-decoration: none;">
<h3>1. Create a meeting with support for Echo Reduction using Amazon Chime SDK Meetings namespace</h3>
</a>
<p>The Amazon Chime SDK Meetings namespace uses a new service principal: meetings.chime.amazonaws.com. If you have SQS, SNS, or other IAM access policies that grant access to the service, you need to update those polices to grant access to the new service principal.</p>
<p>More information regarding this change can be found <a href="https://docs.aws.amazon.com/chime/latest/dg/meeting-namespace-migration.html">here</a>.</p>
<p>Create your meeting by calling the CreateMeeting API and specifying the Echo Reduction flag as <code>&#39;AVAILABLE&#39;</code>.</p>
<pre><code class="language-typescript"><span class="hljs-comment">// Create meeting</span>
<pre><code class="language-typescript"><span class="hljs-comment">// You must migrate to the Amazon Chime SDK Meetings namespace.</span>
<span class="hljs-keyword">const</span> chime = AWS.ChimeSDKMeetings({ <span class="hljs-attr">region</span>: <span class="hljs-string">&quot;eu-central-1&quot;</span> });

<span class="hljs-comment">// Create meeting</span>
<span class="hljs-keyword">const</span> meetingInfo = <span class="hljs-keyword">await</span> chime.createMeeting({
...
<span class="hljs-attr">MeetingFeatures</span>: {
Expand Down Expand Up @@ -405,7 +413,7 @@ <h2>Disabling Amazon Voice Focus and Echo Reduction and switching devices</h2>
<h2>Disabling Echo Reduction from your application</h2>
</a>
<p>During the meeting, you can disable Echo Reduction using the following code. This will just disable the Echo Reduction part of Voice Focus, while maintaining the Noise Reduction:</p>
<pre><code class="language-typecript">await vfDevice.unObserveMeetingAudio(this.audioVideo);
<pre><code class="language-typescript"><span class="hljs-keyword">await</span> vfDevice.unObserveMeetingAudio(<span class="hljs-built_in">this</span>.audioVideo);
</code></pre>
<a href="#adapting-to-performance-constraints" id="adapting-to-performance-constraints" style="color: inherit; text-decoration: none;">
<h2>Adapting to performance constraints</h2>
Expand Down
15 changes: 12 additions & 3 deletions guides/09_Amazon_Voice_Focus.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Amazon Voice Focus is integrated into the `browser` demo application. To try it

## What is Echo Reduction?

Echo reduction helps keep echoessounds from a user’s loudspeaker that get picked up by their microphone—from circulating back into meeting audio and bringing discussions to a standstill. The echo reduction feature is available in conjunction with the noise reduction provided by Amazon Voice Focus.
Echo reduction helps keep echoes and sounds from a user’s loudspeaker that get picked up by their microphone—from circulating back into meeting audio and bringing discussions to a standstill. The echo reduction feature is available in conjunction with the noise reduction provided by Amazon Voice Focus.

Echo reduction is enabled at the meeting level when you call the CreateMeeting or CreateMeetingWithAttendees APIs. Enabling the feature this way allows others who join the meeting to enable echo reduction as desired.

Expand Down Expand Up @@ -283,13 +283,22 @@ A specification is used to derive a runtime _configuration_ when a transformer i

## Enabling Voice Focus with Echo Reduction

> ⚠️ To use the Echo Reduction feature, you must migrate to the [Amazon Chime SDK Meetings](https://docs.aws.amazon.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_Meetings.html) namespace. To do so, you can follow the steps in the [Migrating to the Amazon Chime SDK Meetings namespace](https://docs.aws.amazon.com/chime/latest/dg/meeting-namespace-migration.html).
Enabling Voice Focus with Echo Reduction is a two step process:

### 1. Creating a meeting with support for Echo Reduction
### 1. Create a meeting with support for Echo Reduction using Amazon Chime SDK Meetings namespace

The Amazon Chime SDK Meetings namespace uses a new service principal: meetings.chime.amazonaws.com. If you have SQS, SNS, or other IAM access policies that grant access to the service, you need to update those polices to grant access to the new service principal.

More information regarding this change can be found [here](https://docs.aws.amazon.com/chime/latest/dg/meeting-namespace-migration.html).

Create your meeting by calling the CreateMeeting API and specifying the Echo Reduction flag as `'AVAILABLE'`.

```typescript
// You must migrate to the Amazon Chime SDK Meetings namespace.
const chime = AWS.ChimeSDKMeetings({ region: "eu-central-1" });

// Create meeting
const meetingInfo = await chime.createMeeting({
...
Expand Down Expand Up @@ -364,7 +373,7 @@ console.log('Amazon Voice Focus switched to new device', newDevice);

During the meeting, you can disable Echo Reduction using the following code. This will just disable the Echo Reduction part of Voice Focus, while maintaining the Noise Reduction:

```typecript
```typescript
await vfDevice.unObserveMeetingAudio(this.audioVideo);
```

Expand Down

0 comments on commit 2795a54

Please sign in to comment.