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
+41-47Lines changed: 41 additions & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,18 +17,25 @@ The Azure Communication Services audio effects features can significantly enhanc
17
17
## 🎧 What Are Audio Effects?
18
18
Audio effects in ACS are real-time enhancements applied to microphone input during a call. The Azure Communications Services audio effects package has multiple abilities to remove unwanted sounds from a call (from a client perspective).
19
19
20
-
1.**Noise suppression** (sometimes called noise reduction) focuses on eliminating unwanted background sounds. Think typing sounds, fan hums, distant conversations, or street noise. Its job is to isolate your voice so that whoever is listening hears you more clearly, and reduce or remove the distracting background sounds. It uses algorithms trained to recognize the difference between your speech and ambient noise, then reduces or removes that noise in real time.
20
+
**Noise suppression** (sometimes called noise reduction) focuses on eliminating unwanted background sounds. Think typing sounds, fan hums, distant conversations, or street noise. Its job is to isolate your voice so that whoever is listening hears you more clearly, and reduce or remove the distracting background sounds. It uses algorithms trained to recognize the difference between your speech and ambient noise, then reduces or removes that noise in real time. These noises can be considered a sound that is not human voice.
21
21
Key traits that noise suppression does:
22
-
- Removes continuous or predictable noises.
22
+
- Removes continuous or predictable background noises.
23
23
- Enhances speech clarity.
24
24
- Typically works on the speaker’s end before sending the audio out.
25
25
26
-
2.**Echo cancellation** eliminates echo caused when your microphone picks up audio from your speakers. For example, when someone is on speakerphone and their microphone picks up your voice from their speaker, it can loop back to you as an echo. Echo cancellation predicts and subtracts this returning sound so you don’t hear yourself talking back a fraction of a second later.
26
+
**Echo cancellation** eliminates echo caused when your microphone picks up audio from your speakers. For example, when someone is on speakerphone and their microphone picks up your voice from their speaker, it can loop back to you as an echo. Echo cancellation predicts and subtracts this returning sound so you don’t hear yourself talking back a fraction of a second later.
27
27
Key traits for echo cancelation:
28
28
- Eliminates acoustic feedback.
29
-
- Essential in speakerphone or open mic setups.
29
+
- Essential in open microphone and desktop setups where the microphone picks up audio output from a local speaker.
30
30
- Reduces listener fatigue and confusion caused by hearing your own voice returned.
31
31
32
+
## Best Practices
33
+
The ACS audio effects package provides tools for reducing unwanted sounds. Additional measures can be taken to improve audio quality, such as:
34
+
- Encouraging end users to consider using headphones to minimize the need for echo cancellation.
35
+
- Enabling noise suppression tin shared or open work environments.
36
+
- Setting noise suppression as the default option (i.e., having audio effects activated when a user initiates a call). If this feature is enabled automatically at the start of calls, users do not have to activate it manually. Enabling noise suppression and echo cancellation by default may help mitigate audio issues during calls.
37
+
- Test audio effects in different environments to optimize end user experience.
38
+
32
39
## Use audio effects: Install the calling effects npm package
33
40
34
41
> [!IMPORTANT]
@@ -55,7 +62,7 @@ If you use the **public preview** of the Calling SDK, you must use the [beta ver
55
62
@azure/communication-calling-effects/v/next
56
63
```
57
64
58
-
## Enable Audio Effects
65
+
## Step 2 Enable Audio Effects you wish to use
59
66
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.
console.log(`Error with audio effects: ${error.message}`);
110
-
});
107
+
// We recommend that you check support for the effect in the current environment by using the isSupported method on the feature API. Remember that noise suppression is only supported on desktop browsers for Chrome and Edge.
console.log('Echo Cancellation is supported in the current browser environment');
111
+
}
111
112
```
112
-
=====================================
113
113
114
-
## Start a call with noise suppression automatically enabled
114
+
## Bring it all together: Loand and start Noise Suppresion, Echo cancelation and have the effects automatically
115
115
116
116
To initiate a call with noise suppression enabled, create a new `LocalAudioStream` property using `AudioDeviceInfo`. Ensure that the `LocalAudioStream` source is not set as a raw `MediaStream` property to support audio effects. Then, include this property within `CallStartOptions.audioOptions` when starting the call.
117
117
118
118
```js
119
-
// As an example, here we're simply creating LocalAudioStream by using the current selected mic on DeviceManager.
## To start or stop audio effects packages during a call
171
+
###To start or stop audio effects packages during a call
170
172
To start Azure Communication Services Deep Noise Suppression
171
173
```js
172
174
awaitaudioEffectsFeatureApi.startEffects({
@@ -213,14 +215,6 @@ if (isDeepNoiseSuppressionSupported) {
213
215
}
214
216
```
215
217
216
-
## Best Practices
217
-
The ACS audio effects package provides tools for reducing unwanted sounds. Additional measures can be taken to improve audio quality, such as:
218
-
- Encouraging end users to consider using headphones to minimize the need for echo cancellation.
219
-
- Enabling noise suppression tin shared or open work environments.
220
-
- Setting noise suppression as the default option (i.e., having audio effects activated when a user initiates a call). If this feature is enabled automatically at the start of calls, users do not have to activate it manually. Enabling noise suppression and echo cancellation by default may help mitigate audio issues during calls.
221
-
- Test audio effects in different environments to optimize user experience.
222
-
223
-
224
218
## Related content
225
219
226
220
See the [Audio Effects Feature interface](/javascript/api/azure-communication-services/@azure/communication-calling/audioeffectsfeature?view=azure-communication-services-js&preserve-view=true) documentation page for extended API feature details.
0 commit comments