Skip to content

Commit 0336f9c

Browse files
authored
Merge pull request #164487 from oscholz/patch-124
changed how we refer to key and region
2 parents 9d04649 + f21fd4d commit 0336f9c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: trevorbye
33
ms.service: cognitive-services
44
ms.topic: include
5-
ms.date: 03/25/2020
5+
ms.date: 07/02/2021
66
ms.author: trbye
77
---
88

@@ -44,23 +44,23 @@ from azure.cognitiveservices.speech.audio import AudioOutputConfig
4444

4545
## Create a speech configuration
4646

47-
To call the Speech service using the Speech SDK, you need to create a [`SpeechConfig`](/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.speechconfig). This class includes information about your subscription, like your key and associated region, endpoint, host, or authorization token.
47+
To call the Speech service using the Speech SDK, you need to create a [`SpeechConfig`](/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.speechconfig). This class includes information about your subscription, like your speech key and associated location/region, endpoint, host, or authorization token.
4848

4949
> [!NOTE]
5050
> Regardless of whether you're performing speech recognition, speech synthesis, translation, or intent
5151
> recognition, you'll always create a configuration.
5252
5353
There are a few ways that you can initialize a [`SpeechConfig`](/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.speechconfig):
5454

55-
* With a subscription: pass in a key and the associated region.
56-
* With an endpoint: pass in a Speech service endpoint. A key or authorization token is optional.
57-
* With a host: pass in a host address. A key or authorization token is optional.
58-
* With an authorization token: pass in an authorization token and the associated region.
55+
* With a subscription: pass in a speech key and the associated location/region.
56+
* With an endpoint: pass in a Speech service endpoint. A speech key or authorization token is optional.
57+
* With a host: pass in a host address. A speech key or authorization token is optional.
58+
* With an authorization token: pass in an authorization token and the associated location/region.
5959

60-
In this example, you create a [`SpeechConfig`](/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.speechconfig) using a subscription key and region. Get these credentials by following steps in [Try the Speech service for free](../../../overview.md#try-the-speech-service-for-free).
60+
In this example, you create a [`SpeechConfig`](/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.speechconfig) using a speech key and location/region. Get these credentials by following steps in [Try the Speech service for free](../../../overview.md#try-the-speech-service-for-free).
6161

6262
```python
63-
speech_config = SpeechConfig(subscription="YourSubscriptionKey", region="YourServiceRegion")
63+
speech_config = SpeechConfig(subscription="<paste-your-speech-key-here>", region="<paste-your-speech-location/region-here>")
6464
```
6565

6666
## Synthesize speech to a file

0 commit comments

Comments
 (0)