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
1.Inside the provided `Main()` method, add the following code:
89
+
1.Replace the provided `Main()` method, with the following asynchronous equivalent:
90
90
91
91
```csharp
92
-
RecognizeIntentAsync().Wait();
93
-
Console.WriteLine("Please press Enter to continue.");
94
-
Console.ReadLine();
92
+
publicstaticasyncTaskMain()
93
+
{
94
+
awaitRecognizeIntentAsync();
95
+
Console.WriteLine("Please press Enter to continue.");
96
+
Console.ReadLine();
97
+
}
95
98
```
96
99
97
100
1. Create an empty asynchronous method `RecognizeIntentAsync()`, as shown here:
@@ -168,7 +171,7 @@ The application doesn't parse the JSON result. It only displays the JSON text in
168
171
169
172
## Specify recognition language
170
173
171
-
By default, LUIS recognizes intents in US English (`en-us`). By assigning a locale code to the `SpeechRecognitionLanguage` property of the speech configuration, you can recognize intents in other languages. For example, add `config.SpeechRecognitionLanguage = "de-de";` in our application before creating the recognizer to recognize intents in German. For more information, see [Supported Languages](language-support.md#speech-to-text).
174
+
By default, LUIS recognizes intents in US English (`en-us`). By assigning a locale code to the `SpeechRecognitionLanguage` property of the speech configuration, you can recognize intents in other languages. For example, add `config.SpeechRecognitionLanguage = "de-de";` in our application before creating the recognizer to recognize intents in German. For more information, see [LUIS language support](../LUIS/luis-language-support.md#languages-supported).
0 commit comments