ISpGrammarBuilder (SAPI 5.3)
Microsoft Speech API 5.3
ISpGrammarBuilder
This interface details the SAPI context-free grammar (CFG) backend compiler. These methods can be used to programmatically construct and modify grammars.
When To Use
Applications should use the ISpGrammarBuilder interface to change and save dynamically loaded grammars (see ISpRecoGrammar) and to change and save previously compiled binary grammars (see ISpGramCompBackend).
Methods in Vtable Order
ISpGrammarBuilder Methods |
ResetGrammar |
GetRule |
ClearRule |
CreateNewState |
AddWordTransition |
AddRuleTransition |
AddResource |
Commit |
Additionally, a sample code is provided to demonstrate ISpGrammarBuilder.