Skip to content

Commit 2e8e547

Browse files
authored
added clarity
1 parent 2c0e4c0 commit 2e8e547

File tree

1 file changed

+7
-5
lines changed
  • articles/communication-services/tutorials/audio-quality-enhancements/includes

1 file changed

+7
-5
lines changed

articles/communication-services/tutorials/audio-quality-enhancements/includes/web.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Use the `npm install` command to install the Azure Communication Services Audio
3737
```console
3838
3939
```
40-
40+
### Loading the Noise Suppression effects library
4141
To use `noise suppression` audio effects within the Azure Communication Calling SDK, you need the `LocalAudioStream` that is currently in the call. You need access to the `AudioEffects` API of the `LocalAudioStream` to start and stop audio effects.
4242
```js
4343
import * as AzureCommunicationCallingSDK from '@azure/communication-calling';
@@ -65,7 +65,7 @@ audioEffectsFeatureApi.on('effectsError', (error: AudioEffectErrorPayload) => {
6565
console.log(`Error with audio effects: ${error.message}`);
6666
});
6767
```
68-
68+
### Checking what noise suppression effects are currently active
6969
At anytime if you want to check what **noise suppression** effects are currently active, you can use the `activeEffects` property.
7070
The `activeEffects` property returns an object with the names of the current active effects.
7171
```js
@@ -74,7 +74,9 @@ const currentActiveEffects = audioEffectsFeatureApi.activeEffects;
7474

7575
// Create the noise supression instance
7676
const deepNoiseSuppression = new DeepNoiseSuppressionEffect();
77-
// Its recommened to check support for the effect in the current environment using the isSupported method on the feature API. Remember that Noise Supression is only supported on Desktop Browsers for Chrome and Edge
77+
// Its recommened to check support for the effect in the current environment using the isSupported API
78+
// method. Remember that Noise Supression is only supported on Desktop Browsers for Chrome and Edge
79+
7880
const isDeepNoiseSuppressionSupported = await audioEffectsFeatureApi.isSupported(deepNoiseSuppression);
7981
if (isDeepNoiseSuppressionSupported) {
8082
console.log('Noise supression is supported in browser environment');
@@ -92,7 +94,7 @@ await audioEffectsFeatureApi.stopEffects({
9294

9395
```
9496

95-
### Start a call with Noise Suppression enabled
97+
### Start a call with Noise Suppression automatically enabled
9698
To start a call with **noise suppression** turned on, you can create a new `LocalAudioStream` with a `AudioDeviceInfo` (the LocalAudioStream source <u>shouldn't</u> be a raw `MediaStream` to use audio effects), and pass it in the `CallStartOptions.audioOptions`:
9799
```js
98100
// As an example, here we are simply creating a LocalAudioStream using the current selected mic on the DeviceManager
@@ -114,7 +116,7 @@ await call.startCall({
114116
});
115117
```
116118

117-
### How to turn on Noise Suppression during an ongoing call
119+
### Turn on Noise Suppression during an ongoing call
118120
There are situations where a user might start a call and not have **noise suppression** turned on, but their current environment might get noisy resulting in them needing to turn on **noise suppression**. To turn on **noise suppression**, you can use the `audioEffectsFeatureApi.startEffects` API.
119121
```js
120122
// Create the noise supression instance

0 commit comments

Comments
 (0)