You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For ```SpeechRecognizer```, ```SpeechSynthesizer```, ```IntentRecognizer```, ```ConversationTranscriber``` objects, build the authorization token from the resource ID and the Microsoft Entra access token and then use it to create a ```SpeechConfig``` object.
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.
182
+
183
+
```C#
184
+
// Use an appropriate [credential derived from TokenCredential](https://learn.microsoft.com/dotnet/api/azure.core.tokencredential) based on your authentication scenario.
// 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)
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.
181
197
182
-
::: zone pivot="programming-language-csharp"
183
198
```C#
184
199
stringresourceId="Your Resource ID";
185
200
stringaadToken="Your Microsoft Entra access token";
@@ -192,6 +207,10 @@ var speechConfig = SpeechConfig.FromAuthorizationToken(authorizationToken, regio
For ```SpeechRecognizer```, ```SpeechSynthesizer```, ```IntentRecognizer```, ```ConversationTranscriber``` objects, build the authorization token from the resource ID and the Microsoft Entra access token and then use it to create a ```SpeechConfig``` object.
213
+
195
214
```C++
196
215
std::string resourceId = "Your Resource ID";
197
216
std::string aadToken = "Your Microsoft Entra access token";
@@ -204,6 +223,10 @@ auto speechConfig = SpeechConfig::FromAuthorizationToken(authorizationToken, reg
For ```SpeechRecognizer```, ```SpeechSynthesizer```, ```IntentRecognizer```, ```ConversationTranscriber``` objects, build the authorization token from the resource ID and the Microsoft Entra access token and then use it to create a ```SpeechConfig``` object.
For ```SpeechRecognizer```, ```SpeechSynthesizer```, ```IntentRecognizer```, ```ConversationTranscriber``` objects, build the authorization token from the resource ID and the Microsoft Entra access token and then use it to create a ```SpeechConfig``` object.
For the ```TranslationRecognizer```, build the authorization token from the resource ID and the Microsoft Entra access token and then use it to create a ```SpeechTranslationConfig``` object.
230
-
231
256
::: 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.
258
+
232
259
```C#
233
-
stringresourceId="Your Resource ID";
234
-
stringaadToken="Your Microsoft Entra access token";
235
-
stringregion="Your Speech Region";
260
+
// Use an appropriate [credential derived from TokenCredential](https://learn.microsoft.com/dotnet/api/azure.core.tokencredential) based on your authentication scenario.
// 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)
For the ```TranslationRecognizer```, build the authorization token from the resource ID and the Microsoft Entra access token and then use it to create a ```SpeechTranslationConfig``` object.
273
+
244
274
```cpp
245
275
std::string resourceId = "Your Resource ID";
246
276
std::string aadToken = "Your Microsoft Entra access token";
@@ -253,6 +283,8 @@ auto speechConfig = SpeechTranslationConfig::FromAuthorizationToken(authorizatio
253
283
::: zone-end
254
284
255
285
::: zone pivot="programming-language-java"
286
+
For the ```TranslationRecognizer```, build the authorization token from the resource ID and the Microsoft Entra access token and then use it to create a ```SpeechTranslationConfig``` object.
For the ```TranslationRecognizer```, build the authorization token from the resource ID and the Microsoft Entra access token and then use it to create a ```SpeechTranslationConfig``` object.
0 commit comments