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

ISpRecoGrammar

The ISpRecoGrammar interface enables applications to manage the words and phrases that the SR engine will recognize.

A single SpRecognizer object can have multiple SpRecoContext objects associated with it. And similarly, a single SpRecoContext object can have multiple SpRecoGrammar objects associated with it. Using a one-to-many relationship with SpRecoContext objects and SpRecoGrammar objects allows applications to separate types of recognizable phrases and content into separate objects for clearer application logic. Each SpRecoGrammar object can also have a context-free grammar (CFG) and a dictation grammar loaded simultaneously (e.g., use the CFG if possible, but back off to dictation if CFG fails to parse).

See Designing Grammar Rules for examples of how to create context-free grammars.

Methods in Vtable Order

ISpRecoGrammar Methods Description
ISpGrammarBuilder interface Inherits from ISpGrammarBuilder and all those methods are accessible from an ISpRecoGrammar object.
GetGrammarId Retrieves the grammar identifier associated with the application.
GetRecoContext Retrieves the context object that created this grammar.
LoadCmdFromFile Loads a command and control grammar from a file.
LoadCmdFromObject Loads a command and control grammar from a COM object.
LoadCmdFromResource Loads a command and control grammar from a Win32 resource.
LoadCmdFromMemory Loads a command and control grammar from memory.
LoadCmdFromProprietaryGrammar Loads an engine proprietary format command and control grammar.
SetRuleState Activates or deactivates a rule by its rule name.
SetRuleIdState Activates or deactivates a rule by its rule ID.
LoadDictation Loads and initializes a dictation topic.
UnloadDictation Unloads the active dictation topic from the grammar.
SetDictationState Sets a dictation state to active or inactive.
SetWordSequenceData Sets a word sequence buffer in the SR engine.
SetTextSelection Sets the current text selection and insertion point information.
IsPronounceable Determines if the word has a pronunciation.
SetGrammarState Sets the grammar state.
SaveCmd Allows applications using dynamic grammars to save the current grammar state to a stream.
GetGrammarState Retrieves recognition grammar state information.


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