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
+46-22Lines changed: 46 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,11 +32,7 @@ Key traits for echo cancelation:
32
32
## Use audio effects: Install the calling effects npm package
33
33
34
34
> [!IMPORTANT]
35
-
> **Noise Suppression** features are available in GA SDK version `1.28.4` or later, alongside the Azure Communication Services Calling Effects SDK version GA `1.1.2` or later. The general availability (GA) stable version `1.28.4` and later 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 later also support noise suppression.
36
-
37
-
> 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.2` or later. The general availability (GA) stable version `1.28.4` and later 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 later also support noise suppression.
38
-
>
39
-
> Current browser support for adding audio noise suppression effects is available only on Chrome and Microsoft Edge desktop browsers.
35
+
> **Noise Suppression** features are available in GA WebJS SDK version `1.28.4` or later, alongside the Azure Communication Services Calling Effects SDK version GA `1.1.2` or later. Alternatively, if you opt to use the public preview version, Calling SDK versions `1.24.2-beta.1` and later also support noise suppression.
40
36
41
37
> [!IMPORTANT]
42
38
> **Echo Cancellation** features are available in public preview SDK version [1.37.1](https://github.com/Azure/Communication/blob/master/releasenotes/acs-javascript-calling-library-release-notes.md#1371-beta1-2025-06-16). Also note that to use echo cancelation you must use public preview audio effects SDK version beta version [1.21.1-beta](https://www.npmjs.com/package/@azure/communication-calling-effects/v/1.2.1-beta.1) or later.
@@ -60,7 +56,30 @@ If you use the **public preview** of the Calling SDK, you must use the [beta ver
60
56
```
61
57
62
58
## Enable Audio Effects you wish to use
63
-
For information on the interface that details audio effects properties and methods, see the [Audio Effects Feature interface](/javascript/api/azure-communication-services/@azure/communication-calling/audioeffectsfeature?view=azure-communication-services-js&preserve-view=true) API documentation page.
59
+
The following is a tree-structured representation of the AudioEffects interface:
-`activeEffects` gives you the currently running audio effects.
78
+
-`isSupported` checks if a specific effect is available in the current environment.
79
+
-`startEffects` and `stopEffects` control the activation of effects (noise suppression, echo cancellation)
80
+
-`on`/`off` let you subscribe/unsubscribe to events
81
+
82
+
For more information on the interface that details audio effects properties and methods, see the [Audio Effects Feature interface](/javascript/api/azure-communication-services/@azure/communication-calling/audioeffectsfeature?view=azure-communication-services-js&preserve-view=true) API documentation page.
### Validate that the current browser environment supports audio effects
115
143
We recommend that you check support for the effect in the current browser environment by using the `isSupported` method on the feature API. Remember that audio effects are only supported on desktop browsers for Chrome and Edge.
@@ -130,7 +158,7 @@ if (isNoiseSuppressionSupported) {
130
158
```
131
159
132
160
## Bring it all together: Load and start noise suppression and echo cancelation
133
-
To initiate a call with noise suppression and echo cancelation enabled, create a new `LocalAudioStream` property using `AudioDeviceInfo`. Ensure that the `LocalAudioStream` source isn't set as a raw `MediaStream` property to support audio effects. Then, include this property within `CallStartOptions.audioOptions` when starting the call.
161
+
To initiate a call with both **noise suppression** and **echo cancelation** enabled, create a new `LocalAudioStream` property using `AudioDeviceInfo`. Ensure that the `LocalAudioStream` source isn't set as a raw `MediaStream` property to support audio effects. Then, include this property within `CallStartOptions.audioOptions` when starting the call.
To check what noise suppression effects are currently active, you can use the `activeEffects` property. The `activeEffects` property returns an object with the names of the current active effects.
247
+
To check what noise suppression effects are currently active, you can use the `activeEffects` property. The `activeEffects` property returns an object with the names of the current active effects. See [here](/javascript/api/azure-communication-services/@azure/communication-calling/activeaudioeffects?view=azure-communication-services-js&preserve-view=true) for more details on the `activeEffects` interface.
console.log(`Error with audio effects: ${error.message}`);
243
-
});
261
+
if (activeAudioEffects.noiseSuppression==='DeepNoiseSuppression') {
262
+
// Deep Noise Suppression is currently active
263
+
}
264
+
if (activeAudioEffects.echoCancellation==='EchoCancellation') {
265
+
// Echo Cancellation is currently active
266
+
}
267
+
;
244
268
```
245
269
## Best Practices
246
270
The Azure Communication Services WebJS audio effects package provides tools for reducing unwanted sounds. Other measures can be taken to improve audio quality, such as:
0 commit comments