Sunday, February 18, 2007

Working with grammars and recognition contexts

Here are several other places in the SAPI 5.1 SDK documentation that clarifies the relationship between grammars and recognition contexts and their appropriate usage:

Automation
-> Sp[InProc/Shared]RecoContext
  • "An application may have several recognition contexts open at the same time, each controlling a different part of the application."
  • "Applications may have more than one recognition context. In fact, it is recommended to have as many as makes sense."
Automation -> SpSharedRecoContext -> CreateGrammar
  • "A recognizer may have more than one grammar associated with it although they are usually limited to one each of two types: dictation and context free grammar (CFG)."
Automation -> ISpeechRecoGrammar
  • "Each ISpRecoGrammar object can contain both a context-free grammar (CFG) and a dictation grammar simultaneously."

No comments: