File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
articles/cognitive-services/Speech-Service/includes/quickstarts Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ Follow these steps to create a new console application.
44
44
1. Copy the following code into `speech_recognition.py`:
45
45
46
46
```Python
47
+ import os
47
48
import azure.cognitiveservices.speech as speechsdk
48
49
49
50
def recognize_from_microphone():
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ Follow these steps to create a new console application.
44
44
1. Copy the following code into `speech_synthesis.py`:
45
45
46
46
```Python
47
+ import os
47
48
import azure.cognitiveservices.speech as speechsdk
48
49
49
50
speech_config = speechsdk.SpeechConfig(subscription=os.environ.get('SPEECH_KEY'), region=os.environ.get('SPEECH_REGION'))
You can’t perform that action at this time.
0 commit comments