|
2 | 2 | author: trevorbye
|
3 | 3 | ms.service: cognitive-services
|
4 | 4 | ms.topic: include
|
5 |
| -ms.date: 03/25/2020 |
| 5 | +ms.date: 07/02/2021 |
6 | 6 | ms.author: trbye
|
7 | 7 | ---
|
8 | 8 |
|
@@ -44,23 +44,23 @@ from azure.cognitiveservices.speech.audio import AudioOutputConfig
|
44 | 44 |
|
45 | 45 | ## Create a speech configuration
|
46 | 46 |
|
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. |
48 | 48 |
|
49 | 49 | > [!NOTE]
|
50 | 50 | > Regardless of whether you're performing speech recognition, speech synthesis, translation, or intent
|
51 | 51 | > recognition, you'll always create a configuration.
|
52 | 52 |
|
53 | 53 | There are a few ways that you can initialize a [`SpeechConfig`](/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.speechconfig):
|
54 | 54 |
|
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. |
59 | 59 |
|
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). |
61 | 61 |
|
62 | 62 | ```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>") |
64 | 64 | ```
|
65 | 65 |
|
66 | 66 | ## Synthesize speech to a file
|
|
0 commit comments