0

This is something that has bugged me for a while. I'm developing a C# application that uses voice control, and I was wondering if there is any possible way to load a DictationGrammar and then add words to it to improve accuracy. For instance: I'm trying to use it to search google and bing. It barely recognizes the word 'google' and has never recognized the word 'bing'. Is there any way to do this? DictationGrammar is not very accurate at all (it keeps adding words). Currently, I'm loading the grammar like this:

 PACSREC.LoadGrammarAsync(new DictationGrammar());
Luke Dinkler
  • 731
  • 5
  • 16
  • 36

1 Answers1

2

You can add words to the user lexicon, and the DictationGrammar will implicitly add those words.

Unfortunately, the Lexicon APIs aren't exposed via the System.Speech.Recognition APIs; instead, you'll have to use the SpeechLib (automation-compatible) APIs to do so. See this question for examples.

Community
  • 1
  • 1
Eric Brown
  • 13,774
  • 7
  • 30
  • 71