Microsoft

AI-901 practice question 7

Microsoft Azure AI Fundamentals · free question 7 of 20

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.

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.