Example #1
0
        public async Task Help()
        {
            var orderText = await SpeechRecognizer.GetText();

            var connector  = new LuisConnector(AppConfiguration.LuisApiSubscriptionKey, AppConfiguration.LuisApiEndPoint, AppConfiguration.LuisApiApplicationId);
            var luisResult = await connector.PredictAsync(orderText);

            var intentHandler = GetIntentHandler(luisResult);
            var resultText    = await intentHandler.Handle(luisResult);

            await SpeechSynthesizer.Read(resultText, _voicePlayer);
        }