Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Microsoft Speech API 5.4
ISpeechRecoGrammar
The ISpeechRecoGrammar automation interface enables applications to manage the words and phrases for the SR engine.
A single SpRecognizer object can be associated with multiple SpRecoContext objects. Similarly, a single SpRecoContext object can be associated with multiple ISpRecoGrammar objects. This allows designers to create applications containing several grammars, each of which is specialized for a different type of recognition. Each ISpRecoGrammar object can contain both a context-free grammar (CFG) and a dictation grammar simultaneously.
Automation Interfaces
The ISpeechRecoGrammar automation interface contains the following elements:
| Properties |
| Id Property |
| RecoContext Property |
| Rules Property |
| State Property |
| Methods |
| CmdLoadFromFile Method |
| CmdLoadFromMemory Method |
| CmdLoadFromObject Method |
| CmdLoadFromProprietaryGrammar Method |
| CmdLoadFromResource Method |
| CmdSetRuleIdState Method |
| CmdSetRuleState Method |
| DictationLoad Method |
| DictationSetState Method |
| DictationUnload Method |
| IsPronounceable Method |
| Reset Method |
| SetTextSelection Method |
| SetWordSequenceData Method |