You are reading help file online using chmlib.com
|
Interface: ISpeechRecoResult
The Times property retrieves the time information associated with the result.
Set: | (This property is read-only) |
Get: | ISpeechRecoResultTimes = ISpeechRecoResult.Times |
The following snippet assumes a valid recognition RecoResult. ISpeechRecoResultTimes is retrieved for the current recognition. Since all the values are read-only, they are added to a string for possible display.
Dim myTimes As ISpeechRecoResultTimes
Dim rString As String
Set myTimes = RecoResult.Times()
rString = "Len= " & myTimes.Length & vbCrLf
rString = rString & "Start= " & myTimes.OffsetFromStart & vbCrLf
rString = rString & "Time= " & myTimes.StreamTime & vbCrLf
rString = rString & "TickCount= " & myTimes.TickCount
Alternatively, the same information may be retrieved directly from RecoResult.
Dim rString As String
rString = "Len= " & RecoResult.Times.Length & vbCrLf
rString = rString & "Start= " & RecoResult.Times.OffsetFromStart & vbCrLf
rString = rString & "Time= " & RecoResult.Times.StreamTime & vbCrLf
rString = rString & "TickCount= " & RecoResult.Times.TickCount
You are reading help file online using chmlib.com
|