Skip to content

Commit 110a3e6

Browse files
committed
Corrected code
1 parent e9286ae commit 110a3e6

File tree

1 file changed

+1
-2
lines changed
  • articles/cognitive-services/Speech-Service/includes/quickstarts/tts-audio-file/python

1 file changed

+1
-2
lines changed

articles/cognitive-services/Speech-Service/includes/quickstarts/tts-audio-file/python/python.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ Or you can download this quickstart tutorial as a [Jupyter](https://jupyter.org)
7878

7979
````python
8080
import azure.cognitiveservices.speech as speechsdk
81-
import azure.cognitiveservices.audio as audio
8281

8382
# Replace with your own subscription key and region identifier from here: https://aka.ms/speech/sdkregion
8483
speech_key, service_region = "YourSubscriptionKey", "YourServiceRegion"
@@ -87,7 +86,7 @@ speech_config = speechsdk.SpeechConfig(subscription=speech_key, region=service_r
8786
# Creates an audio configuration that points to an audio file.
8887
# Replace with your own audio filename.
8988
audio_filename = "helloworld.wav"
90-
audio_output = audio.AudioOutputConfig(filename=audio_filename)
89+
audio_output = speechsdk.audio.AudioOutputConfig(filename=audio_filename)
9190

9291
# Creates a synthesizer with the given settings
9392
speech_synthesizer = speechsdk.SpeechSynthesizer(speech_config=speech_config, audio_config=audio_output)

0 commit comments

Comments
 (0)