Last reviewed: 9/10/2008
Article ID: H090805
HOW: Determining grammar rule enablement state
The information in this article applies to:
- SpeechKit 6
SpeechKit vocabulary management supports enabling and disabling rules within grammars with the EnableResource and DisableResource methods.
Grammar enablement rule state may be a helpful indicator in managing application processing states. With SpeechKit 6, grammar rule enablement state can be obtained based on the rule name.
Speech recognition engines have unique grammar syntax and grammar management protocols. SpeechKit vocabulary management provides a common approach to defining, compiling, enabling, and disabling grammars across vendor implementations.
With SpeechKit 6, a new ChantSR component method IsRuleEnabled, provides a way to query whether a rule is enabled or disabled. Since support for rule state is not consistently implemented across speech APIs and within speech engines, the ChantSR component emulates state management where possible.
|Dragon||Rules must be enabled or disabled explicitly before rule state can be tracked.|
|SAPI 4||Rules must be enabled or disabled explicitly before rule state can be tracked.|
|SAPI 5.1 (XP)||Rules must be enabled or disabled explicitly before rule state can be tracked.|
|SAPI 5.3 (Vista)||Rules and rule states accessible via API.|
|SMAPI||Rule management not supported by API.|
|VoCon 3200||Rules and rule states accessible via API.|