File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
articles/cognitive-services/Speech-Service/includes/quickstarts/tts-audio-file/python Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ Or you can download this quickstart tutorial as a [Jupyter](https://jupyter.org)
78
78
79
79
```` python
80
80
import azure.cognitiveservices.speech as speechsdk
81
- import azure.cognitiveservices.audio as audio
82
81
83
82
# Replace with your own subscription key and region identifier from here: https://aka.ms/speech/sdkregion
84
83
speech_key, service_region = " YourSubscriptionKey" , " YourServiceRegion"
@@ -87,7 +86,7 @@ speech_config = speechsdk.SpeechConfig(subscription=speech_key, region=service_r
87
86
# Creates an audio configuration that points to an audio file.
88
87
# Replace with your own audio filename.
89
88
audio_filename = " helloworld.wav"
90
- audio_output = audio.AudioOutputConfig(filename = audio_filename)
89
+ audio_output = speechsdk. audio.AudioOutputConfig(filename = audio_filename)
91
90
92
91
# Creates a synthesizer with the given settings
93
92
speech_synthesizer = speechsdk.SpeechSynthesizer(speech_config = speech_config, audio_config = audio_output)
You can’t perform that action at this time.
0 commit comments