Skip to content

Commit 3f854de

Browse files
author
Xiting Zhang
committed
add intentrecognizer
1 parent c53f72c commit 3f854de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ 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 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.
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#
184184
TokenCredential browserCredential = new InteractiveBrowserCredential();
@@ -190,9 +190,9 @@ var endpoint = "wss://{your custom name}.cognitiveservices.azure.com/stt/speech/
190190
var speechConfig = SpeechConfig.FromEndpoint(new Uri(endpoint), browserCredential);
191191
```
192192

193-
### SpeechSynthesizer
193+
### SpeechSynthesizer, IntentRecognizer
194194

195-
For ```SpeechSynthesizer``` objects, build the authorization token from the resource ID and the Microsoft Entra access token and then use it to create a ```SpeechConfig``` object.
195+
For ```SpeechSynthesizer```, ```IntentRecognizer``` objects, build the authorization token from the resource ID and the Microsoft Entra access token and then use it to create a ```SpeechConfig``` object.
196196

197197
```C#
198198
string resourceId = "Your Resource ID";
@@ -253,7 +253,7 @@ speechConfig = SpeechConfig(auth_token=authorizationToken, region=region)
253253
### TranslationRecognizer
254254

255255
::: zone pivot="programming-language-csharp"
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.
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.
257257

258258
```C#
259259
TokenCredential browserCredential = new InteractiveBrowserCredential();

0 commit comments

Comments
 (0)