You are reading help file online using chmlib.com
|
Interface: ISpeechRecoResultTimes
The OffsetFromStart property returns the time from the start of the stream to the start of the phrase.
It is specified in 100 nanosecond units.
Set: | (This property is read-only) |
Get: | Variant = ISpeechRecoResultTimes.OffsetFromStart |
When a recognition occurs with a valid RecoResult, the times can be extracted in order to select data at a later time. For example, using the phrase "variety is the spice of life," the OffsetFromStart position could be 21120 if the user started speaking relatively quickly once the stream began.
The first example retrieves the recognition offset using the OffsetFromStart property.
Dim myTimes As ISpeechRecoResultTimes
Set myTimes = RecoResult.Times
Dim offsetPosition As Variant
offsetPosition = myTimes.OffsetFromStart
The second example retrieves the recognition offset by directly accessing the RecoResult structure.
Dim offsetPosition As Variant
offsetPosition = RecoResult.Times.OffsetFromStart
You are reading help file online using chmlib.com
|