CHMlib Logo Leading Translation Management System for Translation Agencies, Top Translation Management Software for Freelance Translators, Time Tracking Software, Word Count, Character Count and Line Count Software, Computer Assisted Translation Tool for Easy Word Count, Clipboard Character Count Software, User-Friendly Translation Memory Software, Terminology Management Software, Terminology Management Server, Microsoft Glossary Software, Dictionary of Acronyms, Social Network for Translators and Translation Agencies, Acronyms and Abbreviations Search Engine, Russian Translation Lab, Ukrainian Translation Lab.
You are reading help file online using chmlib.com
CrisisHelper - First Aid in Tough Times of World Economic Crisis


The Microsoft.com Speech website Microsoft Speech SDK

SAPI 5.1

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 Description
ResetGrammar Clears all grammar rules (un-defines them) and resets the grammar's language to NewLanguage.
GetRule Retrieves a grammar rule's initial state information (and defines the rule if requested).
ClearRule Removes all of the grammar rule information except for the rule's initial state handle.
CreateNewState Creates a new state in the same grammar rule as hState.
AddWordTransition Adds a word or a sequence of words to the grammar.
AddRuleTransition Adds a rule (reference) transition from one grammar rule to another.
AddResource Adds a resource (name and string value) to the grammar rule specified in hRuleState.
Commit Performs consistency checks of the grammar structure, creates the serialized format, saves the grammar structure, or reloads the grammar structure to the stream provided by SetSaveObjects, or reloads it into the SR engine.
Additionally, a sample code is provided to demonstrate ISpGrammarBuilder.

You are reading help file online using chmlib.com

If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com
Partner sites: Logo Design, Simple Anti-Crisis Accounting Software, Voice Search for Web