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.