Microsoft

AI-901 practice question 1

Microsoft Azure AI Fundamentals · free question 1 of 20

Question

You are using the Azure Speech SDK to develop a Python application that supports real-time spoken conversations. Which Azure Speech class should you use to configure the connection to the Azure Speech service?
  • A. AudioOutputConfig
  • B. SpeechSynthesizer
  • C. AudioConfig
  • D. SpeechConfig Correct

Explanation

SpeechConfig is the class that encapsulates the connection settings to the Azure Speech service, holding the subscription key/token and the region (or endpoint). It must be created first and passed to recognizers and synthesizers so they know which resource and endpoint to use. AudioConfig only specifies the audio input/output source (microphone, speaker, or file), SpeechSynthesizer performs text-to-speech rather than configuring the connection, and AudioOutputConfig relates to routing synthesized audio output.

Need the theory? Learn it free in the AI-901 course on Godlike Academy

Practice the whole free set

Answer all 20 free AI-901 questions with instant feedback, or unlock all 52 questions with Learn and Exam modes.