Skip to content

Commit 7d4fc8c

Browse files
author
Xiting Zhang
committed
fix tranlsation recognizer
1 parent 66b6894 commit 7d4fc8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ speechConfig = SpeechConfig(auth_token=authorizationToken, region=region)
254254
### TranslationRecognizer
255255

256256
::: zone pivot="programming-language-csharp"
257-
For ```TranslationRecognizer``` objects, build the authorization token from the resource ID and the Microsoft Entra access token and then use it to create a ```SpeechTranslationConfig``` object.
257+
For ```TranslationRecognizer``` objects, use an instance of ```TokenCredential``` along with the endpoint that includes your custom domain to create a ```SpeechTranslationConfig``` object.
258258

259259
```C#
260260
// Use an appropriate [credential derived from TokenCredential](https://learn.microsoft.com/dotnet/api/azure.core.tokencredential) based on your authentication scenario.

0 commit comments

Comments
 (0)