Yeoh Tih Huang The Speech SDK supports enhancement options using advanced audio processing algorithms that are designed to work well with the Speech service. It provides accurate far-field speech recognition via noise suppression, echo cancellation, beamforming, and dereverberation. Please see the section on audio processing from this page.
Audio processing is enhancements applied to a stream of audio to improve the audio quality. Examples of common enhancements include automatic gain control (AGC), noise suppression, and acoustic echo cancellation (AEC). The Speech SDK integrates Microsoft Audio Stack (MAS), allowing any application or product to use its audio processing capabilities on input audio.
For Speech SDK for C++ and C# v1.33.0 and newer, the Microsoft.CognitiveServices.Speech.Extension.MAS
package must be installed to use the Microsoft Audio Stack on Windows, and on Linux if you install the Speech SDK using NuGet.
var speechConfig = SpeechConfig.FromSubscription("YourSubscriptionKey", "YourServiceRegion");
var audioProcessingOptions = AudioProcessingOptions.Create(AudioProcessingConstants.AUDIO_INPUT_PROCESSING_ENABLE_DEFAULT);
var audioInput = AudioConfig.FromDefaultMicrophoneInput(audioProcessingOptions);
var recognizer = new SpeechRecognizer(speechConfig, audioInput);
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.