title: Microsoft Voice Recognition on a Single Word
body: <p>I am trying to implement a voice-cue system for a client where they can assign a word or a phrase to a slide in PowerPoint, and when they speak that word or phrase, the slide advances. Here is the code I am using to create the grammar (I use Microsoft's <code>SpeechRecognitionEngine</code> for the actual work).</p>
  
  <pre><code>Choices choices = new Choices();
  string word = speechSlide.Scenes[speechSlide.currentslide].speechCue;
  if (word.Trim() != "")
  {
      choices.Add(word);
      GrammarBuilder builder = new GrammarBuilder(choices);
      Grammar directions = new Grammar(builder);
      return directions;
  }
  </code></pre>
  
  <p>I tried raising the threshold for the confidence, however I still get too many false positives. Is there a way to improve the grammar? Something tells me that adding only one word to the grammar acceptance list is what is provoking all the false positives.</p>