Skip to content

Commit 031e524

Browse files
Merge pull request #247284 from t-leejiyoon/main
Update code for managing precall audio filters
2 parents 78507bf + a7583d0 commit 031e524

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/communication-services/how-tos/calling-sdk/includes/manage-audio-filters/manage-audio-filters-windows.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,16 @@ This feature allows users to enable or disable echo cancellation on outgoing aud
8484
To apply any precall audio filters, begin by creating a `PrecallOutgoingAudioFilters` and passing it into as shown in the following code:
8585
```csharp
8686
var options = GetStartCallOptions();
87-
var outgoingAudioOptions = options.GetOugoingAudioOptions();
87+
var outgoingAudioOptions = options.OutgoingAudioOptions;
8888
var precallOutgoingAudioFilter = new PrecallOutgoingAudioFilters()
8989
{
90-
EnableAGC = true; // setting automatic gain control
91-
NoiseSuppressionMode = NoiseSuppressionMode.High; // setting noise suppression
92-
}
90+
EnableAGC = true, // setting automatic gain control
91+
NoiseSuppressionMode = NoiseSuppressionMode.High // setting noise suppression
92+
};
9393

94-
outgoingAudioOptions.SetPrecallOutgoingAudioFilters(precallOutgoingAudioFilter);
94+
outgoingAudioOptions.AudioFilters = precallOutgoingAudioFilter;
9595

96-
var call = await this.callAgent.StartCallAsync( new [] { new UserCallIdentifier(acsCallee) }, options);
96+
var call = await this.callAgent.StartCallAsync(new[] { new UserCallIdentifier(acsCallee) }, options);
9797
return call;
9898
```
9999
### Noise suppression

0 commit comments

Comments
 (0)