Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu
Sample test, no account needed

AI-901 sample: question 1 of 5

Yes or no. Choose one answer in each row.AI solutions by using Microsoft Foundry

A developer is building a lightweight Python desktop application that reads incoming text messages aloud to the user. The application uses Azure Speech in Foundry Tools. The environment variables FOUNDRY_KEY and ENDPOINT hold the key and endpoint of the developer's Foundry resource. The exhibit shows an excerpt of the application code.

# Python
import os
import azure.cognitiveservices.speech as speechsdk

speech_config = speechsdk.SpeechConfig(subscription=os.environ.get('FOUNDRY_KEY'), endpoint=os.environ.get('ENDPOINT'))
audio_config = speechsdk.audio.AudioOutputConfig(use_default_speaker=True)
speech_config.speech_synthesis_voice_name='en-US-Ava:DragonHDLatestNeural'

speech_synthesizer = speechsdk.SpeechSynthesizer(speech_config=speech_config, audio_config=audio_config)
result = speech_synthesizer.speak_text_async(message_text).get()

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
StatementYesNo
The code plays the synthesized speech through the computer's default speaker.
The speech_synthesis_voice_name setting specifies which voice speaks the messages.
The application must include its own neural model to generate the audio on the local computer.