Skip to content

Commit 631bada

Browse files
authored
"CustomCommandsConfig.FromSubscription"
------- cc: @donkim
1 parent 67ef553 commit 631bada

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/cognitive-services/Speech-Service/quickstart-custom-speech-commands-speech-sdk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ Add the code-behind source as follows:
304304
const string speechSubscriptionKey = "YourSpeechSubscriptionKey"; // Your subscription key
305305
const string region = "YourServiceRegion"; // The subscription service region. Note: only 'westus2' is currently supported
306306
307-
var speechCommandsConfig = DialogServiceConfig.FromSpeechCommandsAppId(speechCommandsApplicationId, speechSubscriptionKey, region);
307+
var speechCommandsConfig = CustomCommandsConfig.FromSubscription(speechCommandsApplicationId, speechSubscriptionKey, region);
308308
speechCommandsConfig.SetProperty(PropertyId.SpeechServiceConnection_RecoLanguage, "en-us");
309309
connector = new DialogServiceConnector(speechCommandsConfig);
310310
```

0 commit comments

Comments
 (0)