Export (0) Print
Expand All

ISpeechPhraseRule Interface (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

ISpeechPhraseRule

The ISpeechPhraseRule automation interface represents the part of a recognition result that returns information about the grammar rule that produced the recognition.

An ISpeechPhraseRule object variable is returned by the Rule property of the ISpeechPhraseInfo object variable within a recognition result.

For an example of the use of the ISpeechPhraseRule interface, see the code example at the end of this section.


Automation Interface Elements

The ISpeechPhraseRule automation interface contains the following elements:


PropertiesDescription
Children PropertyReturns an ISpeechPhraseRules collection of the rule's child rules.
Confidence PropertyReturns the confidence for the rule computed by SAPI.
EngineConfidence PropertyReturns the confidence score for the rule computed by the SR engine.
FirstElement PropertyReturns the audio stream offset of the first phrase element in the recognition result matched by the rule.
Id PropertyReturns the ID of the phrase rule.
Name PropertyReturns the name of the phrase rule.
NumberOfElements PropertyReturns the number of phrase elements spanned by this rule.
Parent PropertyReturns the rule's parent rule.
Show:
© 2014 Microsoft