ExamQuestions.com

Register
Login
Microsoft Azure Exam Certification (AI-102) Exam Questions

Microsoft

Microsoft Azure Exam Certification (AI-102)

130 / 166

Question 130:

You plan to use Azure Speech service to convert text to speech and output it to a speaker. First you create a speech configuration and next you synthesize speech to the speaker output. Given that the prerequisites are met, Speech SDK is installed and required packages are included, review the code below and complete it by choosing the appropriate answer choices. (select two options) 
<pre class="brush:java;">static async Task SynthesizeAudioAsync()
{
var config = ……………………………..FromSubscription("&lt;subscription key&gt;","&lt;azure region&gt;");
 using var synthesizer = new …………………………...(config);
 await synthesizer.SpeakTextAsync("&lt;speaker output&gt;");
}
</pre> 

Answer options:

A.SpeechConfig
B.AudioConfig
C.AudioDataStream
D.SpeechSynthesizer