Skip to content

Commit 683a68b

Browse files
authored
More small updates
1 parent 289ece1 commit 683a68b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to add audio effects in your calls using Azure Communicat
55
author: sloanster
66

77
ms.author: micahvivion
8-
ms.date: 04/13/2024
8+
ms.date: 04/15/2024
99
ms.topic: tutorial
1010
ms.service: azure-communication-services
1111
ms.subservice: calling
@@ -35,7 +35,7 @@ You can find more [details ](https://www.npmjs.com/package/@azure/communication-
3535
> You can learn about the specifics of the [calling API](/javascript/api/azure-communication-services/@azure/communication-calling/?view=azure-communication-services-js&preserve-view=true).
3636
3737
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.
38-
```js Sample on how to initialize the audio effects API
38+
```js
3939
import * as AzureCommunicationCallingSDK from '@azure/communication-calling';
4040
import { DeepNoiseSuppressionEffect } from '@azure/communication-calling-effects';
4141

@@ -69,9 +69,9 @@ The `activeEffects` property returns an object with the names of the current act
6969
const currentActiveEffects = audioEffectsFeatureApi.activeEffects;
7070
```
7171

72-
### How to turn on Noise Suppression on an ongoing call
72+
### How to turn on Noise Suppression on during an ongoing call
7373
There are situations where are 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.
74-
```js Turn on Noise Suppression on an ongoing call
74+
```js
7575
// Create the noise supression instance
7676
const deepNoiseSuppression = new DeepNoiseSuppressionEffect();
7777

@@ -86,7 +86,7 @@ await audioEffectsFeatureApi.startEffects({
8686
noiseSuppression: deepNoiseSuppression
8787
});
8888

89-
// To stops ACS Deep Noise Suppression
89+
// To stop ACS Deep Noise Suppression
9090
await audioEffectsFeatureApi.stopEffects({
9191
noiseSuppression: true
9292
});
@@ -95,7 +95,7 @@ await audioEffectsFeatureApi.stopEffects({
9595

9696
### Start a call with Noise Suppression enabled
9797
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`:
98-
```js Start a call with Noise Suppression enable
98+
```js
9999
// As an example, here we are simply creating a LocalAudioStream using the current selected mic on the DeviceManager
100100
const audioDevice = deviceManager.selectedMicrophone;
101101
const localAudioStreamWithEffects = new SDK.LocalAudioStream(audioDevice);

0 commit comments

Comments
 (0)