hiexam
microsoft · AI-102 · Q648 · code_completion · azure_ai, speech_translation, code_completion

HOTSPOT - You are building an app that will automatically translate speech from English to French, German, and Spanish…

HOTSPOT - You are building an app that will automatically translate speech from English to French, German, and Spanish by using Azure AI service. You need to define the output languages and configure the Azure AI Speech service. How should you complete the code? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. //IMG//
static async Task TranslateSpeechAsync()
{
  var config = SpeechTranslationConfig.FromSubscription(SPEECH_SUBSCRIPTION_KEY, SPEECH_SERVICE_REGION);
  var languages = new List<string>
  {
    {{slot1}}
  };

  languages.ForEach(config.AddTargetLanguage);
  
  using var recognizer = new {{slot2}};
  ...
}
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