QuestionQ21
Implement AI solutions by using Microsoft FoundryYou are building an application that converts text to spoken audio and stores the synthesized audio in a file by using Azure Speech in Foundry Tools.
How should you complete the Python code?
Select
import azure.cognitiveservices.speech as speechsdk ... speech_config = speechsdk.SpeechConfig(subscription=key, region=region) audio_config = speechsdk.audio. synthesizer = speechsdk.SpeechSynthesizer( speech_config=speech_config, audio_config=audio_config ) ...
Community Discussion