hiexam
microsoft · AI-102 · Q281 · code_completion · azure, speech_sdk, csharp

Fill in the missing parts of the code to configure the audio format and recognize speech using Azure Speech SDK.

Fill in the missing parts of the code to configure the audio format and recognize speech using Azure Speech SDK.
var audioFormat = {{slot1}};
var speechConfig = SpeechConfig.FromSubscription("<SubscriptionKey>", "<Region>");
var audioConfig = AudioConfig.FromStreamInput(pushStream, audioFormat);
using (var recognizer = new {{slot2}})
{
    var result = await recognizer.RecognizeOnceAsync();
    var text = result.Text;
}
Correct slot values

Answer hidden

Unlock AI-102

First 5 questions of every exam are free. Unlock the rest.

Includes
  • · All — questions
  • · Verified answers + AI explanations
  • · Spaced-repetition mistake notebook
  • · Phone, tablet, laptop sync

One-time payment. Doesn't auto-renew. · Already paid? Sign in