Skip to content

Commit b7767fe

Browse files
committed
Corrected code
1 parent 110a3e6 commit b7767fe

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ Or you can download this quickstart tutorial as a [Jupyter](https://jupyter.org)
4444
4545
```python
4646
import azure.cognitiveservices.speech as speechsdk
47-
import azure.cognitiveservices.audio as audio
4847

4948
# Creates an instance of a speech config with specified subscription key and service region.
5049
# Replace with your own subscription key and region identifier from here: https://aka.ms/speech/sdkregion
@@ -54,7 +53,7 @@ speech_config = speechsdk.SpeechConfig(subscription=speech_key, region=service_r
5453
# Creates an audio configuration that points to an audio file.
5554
# Replace with your own audio filename.
5655
audio_filename = "whatstheweatherlike.wav"
57-
audio_input = audio.AudioConfig(filename=audio_filename)
56+
audio_input = speechsdk.audio.AudioConfig(filename=audio_filename)
5857

5958
# Creates a recognizer with the given settings
6059
speech_recognizer = speechsdk.SpeechRecognizer(speech_config=speech_config, audio_config=audio_input)

0 commit comments

Comments
 (0)