SPRULE (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

SPRULE

New in SAPI 5.3

Represents a rule in a collection of run-time grammar rules.

SPRULE is used when fetching all of the rules in a run-time grammar using the ISpRecoGrammar2::GetRules function.

typedef struct SPRULE
{
    LPCWSTR    pszRuleName;
    ULONG      ulRuleId;
    DWORD      dwAttributes;
} SPRULE;

Members

pszRuleName
The name of the rule. This may be an empty string.
ulRuleId
The ID of the rule. This is unique within a grammar.
dwAttributes
A bit field describing the characteristics of the rule. The enum SPCFGRULEATTRIBUTES defines the bit values.