Question
You are developing a voice application that listens for spoken commands and converts them into text by using Azure Speech in Foundry Tools.
How should you complete the Python code? To answer, select the appropriate option in the answer area.
NOTE: Each correct selection is worth one point.
Explanation
After creating a SpeechConfig and a SpeechRecognizer, calling recognizer.recognize_once() performs a single synchronous recognition, capturing one spoken utterance and returning it as text, which fits an application that listens for individual spoken commands. This method waits for a single result rather than continuous streaming, making it the appropriate call to complete the recognition step.