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
+21-18Lines changed: 21 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,8 +39,6 @@ Key traits for echo cancelation:
39
39
40
40
> [!NOTE]
41
41
> - Utilizing audio effects is available only on Chrome and Edge desktop browsers.
42
-
43
-
> [!NOTE]
44
42
> - The audio effects library isn't a standalone module and can't function independently. To utilize its capabilities the effects package must be integrated with the Azure Communication Services Calling client library for WebJS.
45
43
> - If you use the GA version of the Calling SDK, you must use the [GA version](https://www.npmjs.com/package/@azure/communication-calling-effects/v/latest) of the Calling audio effects package.
### Validate that the current browser environment supports audio effects
113
120
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.
@@ -128,7 +135,7 @@ if (isNoiseSuppressionSupported) {
128
135
```
129
136
130
137
## Bring it all together: Load and start noise suppression and echo cancelation
131
-
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.
138
+
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.
224
+
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) for more details on the 'activeEffects' interface.
console.log(`Error with audio effects: ${error.message}`);
241
-
});
238
+
if (activeAudioEffects.noiseSuppression==='DeepNoiseSuppression') {
239
+
// Deep Noise Suppression is currently active
240
+
}
241
+
if (activeAudioEffects.echoCancellation==='EchoCancellation') {
242
+
// Echo Cancellation is currently active
243
+
}
244
+
;
242
245
```
243
246
## Best Practices
244
247
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