Microsoft Azure AI Engineer Associate AI-102 Practice Question
You are adding spoken output to a chat application that uses the Azure OpenAI GPT-4 model to generate text replies. Users must hear the reply as soon as the first few audio bytes are available, instead of waiting for the whole sentence to be synthesized. You plan to call the Azure AI Speech SDK from a C# backend. Which implementation meets this low-latency requirement?
Use the Batch Synthesis REST API to submit the text and download the finished WAV file when the job completes.
Create a SpeechSynthesizer with a PushAudioOutputStream and forward each Synthesizing event chunk to the client for playback.
Route the text through the Speech Translation service so the spoken output is returned as a translated stream.
Call SpeechSynthesizer.SpeakTextAsync and send the resulting audio stream after the task finishes.
To begin playback while synthesis is still running you must stream the audio data. The Speech SDK can push each audio chunk to your code through a PushAudioOutputStream that you pass when you create the SpeechSynthesizer. Your code can forward each chunk to the client for immediate playback. SpeakTextAsync returns only when the full synthesis is finished, the Batch Synthesis REST API produces the file after the job completes, and the speech translation API first recognizes speech before it can translate, so none of those approaches provide the required near-real-time start.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Azure AI Speech SDK?
Open an interactive chat with Bash
What is PushAudioOutputStream?
Open an interactive chat with Bash
What is the difference between PushAudioOutputStream and SpeakTextAsync?
Open an interactive chat with Bash
Microsoft Azure AI Engineer Associate AI-102
Implement natural language processing solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .