Skip to content

Commit ad2475b

Browse files
Merge pull request #212132 from eric-urban/patch-1
Update python.md
2 parents 6f3cb0b + 7656e74 commit ad2475b

File tree

2 files changed

+2
-0
lines changed
  • articles/cognitive-services/Speech-Service/includes/quickstarts

2 files changed

+2
-0
lines changed

articles/cognitive-services/Speech-Service/includes/quickstarts/speech-to-text-basics/python.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Follow these steps to create a new console application.
4444
1. Copy the following code into `speech_recognition.py`:
4545

4646
```Python
47+
import os
4748
import azure.cognitiveservices.speech as speechsdk
4849

4950
def recognize_from_microphone():

articles/cognitive-services/Speech-Service/includes/quickstarts/text-to-speech-basics/python.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Follow these steps to create a new console application.
4444
1. Copy the following code into `speech_synthesis.py`:
4545

4646
```Python
47+
import os
4748
import azure.cognitiveservices.speech as speechsdk
4849

4950
speech_config = speechsdk.SpeechConfig(subscription=os.environ.get('SPEECH_KEY'), region=os.environ.get('SPEECH_REGION'))

0 commit comments

Comments
 (0)