ISpeechRecoResultTimes StreamTime Property

Microsoft Speech SDK

Intelligent Interface Technologies Home Page Microsoft Speech SDK

Speech Automation 5.1

Interface: ISpeechRecoResultTimes

StreamTime Property

The StreamTime property returns the time of the stream in Universal Coordinated Time.

This value is zero if a wave file input is used.


Syntax

Set: (This property is read-only)
Get: Variant = ISpeechRecoResultTimes.StreamTime

Parts

ISpeechRecoResultTimes
The owning object.
Variant
Set: (This property is read-only)
Get: A Variant type containing the Universal Coordinated Time time of the phrase start for the stream.

Example

When a recognition occurs with a valid RecoResult, the StreamTime can be extracted.

The first example retrieves the recognition stream time using the StreamTime property.

Dim myTimes As ISpeechRecoResultTimes
Set myTimes = RecoResult.Times
    
Dim streamTime As Variant
streamTime = myTimes.StreamTime

The second example retrieves the recognition stream time by directly accessing the RecoResult structure.

Dim streamTime As Variant
streamTime = RecoResult.Times.StreamTime