ISpeechRecoResult Times Property

Microsoft Speech SDK

Intelligent Interface Technologies Home Page Microsoft Speech SDK

Speech Automation 5.1

Interface: ISpeechRecoResult

Times Property

The Times property retrieves the time information associated with the result.

Syntax

Set: (This property is read-only)
Get: ISpeechRecoResultTimes = ISpeechRecoResult.Times

Parts

ISpeechRecoResult
The owning object.
ISpeechRecoResultTimes
Set: (This property is read-only)
Get: An ISpeechRecoResultTimes variable containing the time information for the recognition.

Example

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