Пример #1
0
        public async void Loading()
        {
            constraints = FoodWarDecisionEngine.DecisionStorage.GetListOfAllFoods();

            detector = new SpeechDetector(constraints, Dispatcher);
            await detector.Initialise();

            detector.PickedFood += PickSuggestion;

            listOfFoodTypes = new List <string>(constraints);
        }
Пример #2
0
        public LandingPage()
        {
            this.InitializeComponent();

            //timer = new DispatcherTimer();
            //timer.Interval = new TimeSpan(0, 0, 3);
            //timer.Tick += SwapPage;
            //timer.Start();

            keyWords = new List <string>();
            keyWords.Add("start");

            detector = new SpeechDetector(keyWords, Dispatcher);

            detector.SwapPageCallback += SwapPage;
            detector.Initialise();


            //await detector.OnSearchStart();
        }