I have myself never used the Speech Recognition API, but if you get it to work (Just the recognition), meaning if you get the
Quote:
Console.WriteLine(" Speech recognized: " + e.Result.Text);
to execute, and the right said text does print on the screen, then you should put the code that analyses the result (e.Result.Text) right after that line, since recognizer_SpeechRecognized is the method that runs if the speech is successfully recognized.
For now, you should just try to get the recognizer to print the text on screen, once done, do a simple string comparison (e.Result.Text.ToLowerCase().Trim() == "Please turn the fan on") to see if it runs, once that works, you can make it a more sophisticated speech analysis method.
I hope this helps.