ISpeechPhraseRule Interface (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

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:


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