You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/communication-services/tutorials/audio-quality-enhancements/includes/web.md
+36-9Lines changed: 36 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,9 @@ ms.subservice: calling
14
14
15
15
The Azure Communication Services audio effects **noise suppression** abilities can improve your audio calls by filtering out unwanted background noises. **Noise suppression** is a technology that removes background noises from audio calls. It makes audio calls clearer and better by eliminating background noise, making it easier to talk and listen. Noise suppression can also reduce distractions and tiredness caused by noisy places. For example, if you're taking an Azure Communication Services WebJS call in a coffee shop with considerable noise, turning on noise suppression can make the call experience better.
16
16
17
-
## Using audio effects - **Noise Suppression**
18
-
### Install the npm package
17
+
## Using audio effects - install the calling effects npm package
19
18
> [!IMPORTANT]
20
-
> This tutorial employs the Azure Communication Services Calling SDK version `1.28.4` or later, alongside the Azure Communication > Services Calling Effects SDK version `1.1.1` or newer. The GA (stable) version **`1.28.4`** and above of the calling SDK support noise suppression features. Alternatively, if you opt to use the public preview version, calling SDK versions `1.24.2-beta.1` and higher also support noise suppression.
19
+
> This tutorial employs the Azure Communication Services Calling SDK version `1.28.4` or later, alongside the Azure Communication Services Calling Effects SDK version `1.1.1` or newer. The GA (stable) version **`1.28.4`** and above of the calling SDK support noise suppression features. Alternatively, if you opt to use the public preview version, calling SDK versions `1.24.2-beta.1` and higher also support noise suppression.
21
20
>
22
21
> Current browser support for adding audio noise suppression effects is only available on Chrome and Edge Desktop browsers.
23
22
@@ -37,7 +36,7 @@ Use the `npm install` command to install the Azure Communication Services Audio
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.
console.log('Noise supression is supported in local browser environment');
82
+
}
83
+
84
+
// To start ACS Deep Noise Suppression
85
+
awaitaudioEffectsFeatureApi.startEffects({
86
+
noiseSuppression: deepNoiseSuppression
87
+
});
88
+
89
+
// To stop ACS Deep Noise Suppression
90
+
awaitaudioEffectsFeatureApi.stopEffects({
91
+
noiseSuppression:true
92
+
});
93
+
74
94
```
75
95
76
-
###Start a call with Noise Suppression enabled
96
+
## Start a call with Noise Suppression automatically enabled
77
97
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`:
78
98
```js
79
99
// As an example, here we are simply creating a LocalAudioStream using the current selected mic on the DeviceManager
### How to turn on Noise Suppression during an ongoing call
118
+
##Turn on Noise Suppression during an ongoing call
99
119
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.
// 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
0 commit comments