Microsoft Azure AI Engineer Associate AI-102 Practice Question
You are building a voice-enabled web application that uses Azure OpenAI to generate answers and Azure AI Speech to read them aloud. Because answers can be several paragraphs long, you need the browser to begin playback as soon as the first audio bytes arrive rather than waiting for the entire text to be synthesized.
Which implementation approach meets this requirement while minimizing latency?
Send the complete OpenAI response to the Speech Synthesis REST endpoint and return the resulting WAV file after the call finishes.
Enable AutoDetectSourceLanguageConfig and call SpeakTextAsync once the whole response is generated.
Use the Batch Synthesis API so that the speech service produces the audio in parallel on the server and then download the final MP3.
Call StartSpeakingTextAsync on a SpeechSynthesizer object and stream each audio buffer that arrives in the Synthesizing event directly to the client.
The Speech SDK can expose every audio chunk produced by the neural text-to-speech engine through the Synthesizing event. Using StartSpeakingTextAsync (or its SSML equivalent) lets you begin synthesis immediately and then stream each audio buffer through a WebSocket or media source extension to the browser. Batch synthesis or calling SpeakTextAsync after the whole OpenAI response is finished both delay playback. Auto detecting the source language is unrelated to reducing synthesis latency.
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 StartSpeakingTextAsync and how does it work?
Open an interactive chat with Bash
What is the Synthesizing event and why is it useful?
Open an interactive chat with Bash
How does streaming audio via WebSockets or media extensions reduce latency?
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 .