Skip to content

Commit 28921be

Browse files
authored
Merge pull request #206056 from DenKenMSFT/UserStory1971500-38
Subscription key note update - Speech Service, Quickstart
2 parents a5b514c + 4689f10 commit 28921be

File tree

5 files changed

+14
-0
lines changed

5 files changed

+14
-0
lines changed

articles/cognitive-services/Speech-Service/includes/quickstarts/speaker-recognition-basics/cpp.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ auto ticks_per_second = 10000000;
4646
4747
To call the Speech service by using the Speech SDK, create a [`SpeechConfig`](/cpp/cognitive-services/speech/speechconfig) class. This class includes information about your subscription, like your key and associated region, endpoint, host, or authorization token.
4848
49+
> [!IMPORTANT]
50+
> Remember to remove the key from your code when you're done, and never post it publicly. For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](../../../../../key-vault/general/overview.md). See the Cognitive Services [security](../../../../cognitive-services-security.md) article for more information.
51+
4952
```cpp
5053
shared_ptr<SpeechConfig> GetSpeechConfig()
5154
{

articles/cognitive-services/Speech-Service/includes/quickstarts/speaker-recognition-basics/csharp.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ using Microsoft.CognitiveServices.Speech.Audio;
4141

4242
To call the Speech service by using the Speech SDK, you need to create a [`SpeechConfig`](/dotnet/api/microsoft.cognitiveservices.speech.speechconfig) instance. In this example, you create a `SpeechConfig` instance by using a subscription key and region. You also create some basic boilerplate code to use for the rest of this article, which you modify for different customizations.
4343

44+
> [!IMPORTANT]
45+
> Remember to remove the key from your code when you're done, and never post it publicly. For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](../../../../../key-vault/general/overview.md). See the Cognitive Services [security](../../../../cognitive-services-security.md) article for more information.
46+
4447
```csharp
4548
public class Program
4649
{

articles/cognitive-services/Speech-Service/includes/quickstarts/speaker-recognition-basics/go.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ Follow these steps to create a new GO module.
178178
```
179179

180180
1. In `independent-identification.go`, replace `YourSubscriptionKey` with your Speech resource key, and replace `YourServiceRegion` with your Speech resource region.
181+
> [!IMPORTANT]
182+
> Remember to remove the key from your code when you're done, and never post it publicly. For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](../../../../../key-vault/general/overview.md). See the Cognitive Services [security](../../../../cognitive-services-security.md) article for more information.
181183
182184
Run the following commands to create a `go.mod` file that links to components hosted on GitHub:
183185

articles/cognitive-services/Speech-Service/includes/quickstarts/speaker-recognition-basics/javascript.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ const ticks_per_second = 10000000;
8585

8686
These statements import the required libraries and get your Speech service subscription key and region from your environment variables. They also specify paths to audio files that you'll use in the following tasks.
8787

88+
> [!IMPORTANT]
89+
> Remember to remove the key from your code when you're done, and never post it publicly. For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](../../../../../key-vault/general/overview.md). See the Cognitive Services [security](../../../../cognitive-services-security.md) article for more information.
90+
8891
## Create a helper function
8992

9093
Add the following helper function to read audio files into streams for use by the Speech service:

articles/cognitive-services/Speech-Service/includes/quickstarts/speaker-recognition-basics/rest.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ Speaker verification is the act of confirming that a speaker matches a known, or
2121

2222
Start by [creating a voice profile](/rest/api/speakerrecognition/verification/textdependent/createprofile). You'll need to insert your Speech service subscription key and region into each of the curl commands in this article.
2323

24+
> [!IMPORTANT]
25+
> Remember to remove the key from your code when you're done, and never post it publicly. For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](../../../../../key-vault/general/overview.md). See the Cognitive Services [security](../../../../cognitive-services-security.md) article for more information.
26+
2427
```curl
2528
# Note Change locale if needed.
2629
curl --location --request POST 'INSERT_ENDPOINT_HERE/speaker-recognition/verification/text-dependent/profiles?api-version=2021-09-05' \

0 commit comments

Comments
 (0)