Ejemplo n.º 1
0
        public VoiceRecognizer(DocumentAnalyser analyser)
        {
            this.analyser     = analyser;
            recognitionEngine = new SpeechRecognitionEngine(CultureInfo.CurrentCulture);

            StartEngine();
        }
        public FormNavigator()
        {
            InitializeComponent();

            browser.LoadHtml(File.ReadAllText("html/test.html"));

            DocumentAnalyser analyser   = new DocumentAnalyser();
            VoiceRecognizer  recognizer = new VoiceRecognizer(analyser);

            browser.DocumentCompleted += (sender, _) =>
            {
                analyser.Analyse(browser.Document);

                recognizer.Recognize();
            };
        }