AI-103 practice question 1 of 15

You are creating an agent workflow in a Microsoft Foundry project to support natural voice interactions. The agent must receive continuous audio…

Full set: 67 questions
You are creating an agent workflow in a Microsoft Foundry project to support natural voice interactions. The agent must receive continuous audio input, convert the input into text for reasoning, and then return spoken responses to a user. The workflow must meet the following requirements: . Support turn-taking dynamics, where the agent begins to generate the speech output before the user finishes speaking. . Operate with low latency to maintain a conversational experience. You need to enable both speech to text and text to speech in a real-time agent interaction. What should you do?
Answer options
A: Use an embeddings model to encode the audio, and then decode the audio into text and speech.
B: Use batch transcription to convert the audio input and return text responses from the agent.
C: Use speech translation to convert the audio into another language and return the translated text.
D: Use real-time speech to text for incoming audio and text to speech for agent responses. Correct answer
Correct Answer:
D. Use real-time speech to text for incoming audio and text to speech for agent responses.
Explanation

The scenario requires a real-time, low-latency conversational agent that processes continuous audio input and provides spoken responses. This is achieved by combining two core functionalities of the Azure AI Speech service:
1. Real-time speech to text (STT): This service transcribes the user's spoken words into text as they are being said. Its low-latency nature is essential for conversational turn-taking and a natural user experience.
2. Text to speech (TTS): After the agent's logic processes the transcribed text and formulates a response, TTS converts that text response back into synthesized, spoken audio for the user. This combination directly addresses the need for a continuous, interactive voice workflow.

Why Incorrect

A. Use an embeddings model to encode the audio, and then decode the audio into text and speech. This is an abstract description of a potential underlying mechanism, not the specific Azure AI services required. The direct solution involves using the dedicated STT and TTS services.
B. Use batch transcription to convert the audio input and return text responses from the agent. Batch transcription is designed for processing large volumes of pre-recorded audio and has high latency, making it unsuitable for the required real-time, conversational interaction.
C. Use speech translation to convert the audio into another language and return the translated text. Speech translation is for multilingual scenarios. The question does not specify a need for translation, but rather a direct speech-to-text and text-to-speech workflow.

References

1. Microsoft Learn, "What is speech to text?": This document explicitly distinguishes between real-time and batch transcription. It states, "Real-time speech to text transcribes audio from a source in real time... Use real-time speech to text for applications that need to transcribe audio in real time such as... conversational agents."

Reference: Microsoft Corporation. (2024). What is speech to text?. Microsoft Learn. Retrieved from https://learn.microsoft.com/en-us/azure/ai-services/speech-service/speech-to-text#real-time-speech-to-text (Section: "Real-time speech to text").

2. Microsoft Learn, "What is text to speech?": This document describes the service for generating spoken output. "Text to speech from the Speech service enables your applications, tools, or devices to convert text into humanlike synthesized speech." This is the required component for the agent's spoken response.

Reference: Microsoft Corporation. (2024). What is text to speech?. Microsoft Learn. Retrieved from https://learn.microsoft.com/en-us/azure/ai-services/speech-service/text-to-speech (Section: "Core features").

3. Microsoft Learn, "Batch transcription": This source clarifies the use case for batch processing, confirming it is not for real-time scenarios. "Batch transcription is a set of REST API operations that enable you to transcribe a large amount of audio in storage."

Reference: Microsoft Corporation. (2024). What is batch transcription?. Microsoft Learn. Retrieved from https://learn.microsoft.com/en-us/azure/ai-services/speech-service/batch-transcription-overview (Introduction paragraph).

Scroll to Top