Skip to content

Commit c53f72c

Browse files
author
Xiting Zhang
committed
fix link
1 parent 7deb328 commit c53f72c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

articles/ai-services/speech-service/how-to-configure-azure-ad-auth.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,12 @@ The method of providing the token, and the method to construct the corresponding
178178
::: zone pivot="programming-language-csharp"
179179
### SpeechRecognizer, SourceLanguageRecognizer, ConversationTranscriber
180180

181-
For ```SpeechRecognizer```, ```SourceLanguageRecognizer```, ```ConversationTranscriber``` objects, use an instance of ```TokenCredential``` along with the endpoint that includes your custom domain to create a ```SpeechConfig``` object.
181+
For ```SpeechRecognizer```, ```SourceLanguageRecognizer```, ```ConversationTranscriber``` objects, use an appropriate instance of [TokenCredential](https://learn.microsoft.com/dotnet/api/azure.core.tokencredential) for authentication, along with the endpoint that includes your [custom domain](https://learn.microsoft.com/azure/ai-services/speech-service/speech-services-private-link?tabs=portal#create-a-custom-domain-name) to, create a ```SpeechConfig``` object.
182182

183183
```C#
184-
// Use an appropriate [credential derived from TokenCredential](https://learn.microsoft.com/dotnet/api/azure.core.tokencredential) based on your authentication scenario.
185184
TokenCredential browserCredential = new InteractiveBrowserCredential();
186185

187-
// Define the custom domain endpoint for your Speech resource. Learn more about [creating a custom domain](https://learn.microsoft.com/azure/ai-services/speech-service/speech-services-private-link?tabs=portal#create-a-custom-domain-name)
186+
// Define the custom domain endpoint for your Speech resource.
188187
var endpoint = "wss://{your custom name}.cognitiveservices.azure.com/stt/speech/universal/v2";
189188

190189
// Create the SpeechConfig object using the custom domain endpoint and TokenCredential.
@@ -254,13 +253,12 @@ speechConfig = SpeechConfig(auth_token=authorizationToken, region=region)
254253
### TranslationRecognizer
255254

256255
::: zone pivot="programming-language-csharp"
257-
For ```TranslationRecognizer``` objects, use an instance of ```TokenCredential``` along with the endpoint that includes your custom domain to create a ```SpeechTranslationConfig``` object.
256+
For ```TranslationRecognizer``` object, use an appropriate instance of [TokenCredential](https://learn.microsoft.com/dotnet/api/azure.core.tokencredential) for authentication, along with the endpoint that includes your [custom domain](https://learn.microsoft.com/azure/ai-services/speech-service/speech-services-private-link?tabs=portal#create-a-custom-domain-name) to, create a ```SpeechTranslationConfig``` object.
258257

259258
```C#
260-
// Use an appropriate [credential derived from TokenCredential](https://learn.microsoft.com/dotnet/api/azure.core.tokencredential) based on your authentication scenario.
261259
TokenCredential browserCredential = new InteractiveBrowserCredential();
262260

263-
// Define the custom domain endpoint for your Speech resource. Learn more about [creating a custom domain](https://learn.microsoft.com/azure/ai-services/speech-service/speech-services-private-link?tabs=portal#create-a-custom-domain-name)
261+
// Define the custom domain endpoint for your Speech resource
264262
var endpoint = "wss://{your custom name}.cognitiveservices.azure.com/stt/speech/universal/v2";
265263

266264
// Create the SpeechTranslationConfig object using the custom domain endpoint and TokenCredential.

0 commit comments

Comments
 (0)