Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Microsoft Speech Platform

SPRULE

Represents a rule in a collection of runtime grammar rules.

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

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>typedef struct SPRULE {</strong> <strong>LPCWSTR</strong> <em>pszRuleName</em>; <strong>ULONG</strong> <em>ulRuleId</em>; <strong>DWORD</strong> <em>dwAttributes</em>; <strong>} SPRULE;</strong> </pre>

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.