You are reading help file online using chmlib.com
|
Interface: ISpeechPhraseInfo
The Rule property retrieves information about the top-level rule that was used to recognize the phrase.
Set: | (This property is read-only) |
Get: | ISpeechPhraseRule = ISpeechPhraseInfo.Rule |
The following code snippet assumes a valid recognition, RecoResult, although it still checks for validity. In the sample below, a few of the rule properties are retrieved.
If Not RecoResult Is Nothing Then
Dim rp As ISpeechPhraseInfo
Set rp = RecoResult.PhraseInfo
Dim ruleName As String
ruleName = rp.rule.Name
Dim ruleID, firstElement, numberOfElements As Long
ruleID = rp.rule.Id
firstElement = rp.rule.FirstElement
numberOfElements = rp.rule.NumberOfElements
End If
You are reading help file online using chmlib.com
|