Configuration of noise suppression in MAS using SpeechSDK

Yeoh Tih Huang 20 Reputation points
2024-01-15T13:17:22.12+00:00

Is there a way to configure disable noise suppression when i'm running speech recognition using SpeechSDK

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,910 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,099 questions
{count} votes

Accepted answer
  1. romungi-MSFT 48,541 Reputation points Microsoft Employee
    2024-01-16T06:41:27.1266667+00:00

    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.