File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
articles/cognitive-services/Speech-Service/includes/quickstarts/from-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 @@ -44,7 +44,6 @@ Or you can download this quickstart tutorial as a [Jupyter](https://jupyter.org)
44
44
45
45
``` python
46
46
import azure.cognitiveservices.speech as speechsdk
47
- import azure.cognitiveservices.audio as audio
48
47
49
48
# Creates an instance of a speech config with specified subscription key and service region.
50
49
# 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
54
53
# Creates an audio configuration that points to an audio file.
55
54
# Replace with your own audio filename.
56
55
audio_filename = " whatstheweatherlike.wav"
57
- audio_input = audio.AudioConfig(filename = audio_filename)
56
+ audio_input = speechsdk. audio.AudioConfig(filename = audio_filename)
58
57
59
58
# Creates a recognizer with the given settings
60
59
speech_recognizer = speechsdk.SpeechRecognizer(speech_config = speech_config, audio_config = audio_input)
You can’t perform that action at this time.
0 commit comments