You are reading help file online using chmlib.com
|
Interface: ISpeechRecoResultTimes
The Length property returns the time length of the last recognition.
It is specified in 100 nanosecond units.
Set: | (This property is read-only) |
Get: | Variant = ISpeechRecoResultTimes.Length |
When a recognition occurs with a valid RecoResult, the times can be extracted for later use to allocate memory or to select data from the audio stream. For example, using the phrase "variety is the spice of life," the Length could be 32,200,000 nanoseconds or 3.2 seconds.
The first example retrieves the recognition length using the Length property.
Dim myTimes As ISpeechRecoResultTimes
Set myTimes = RecoResult.Times
Dim recoLength As Variant
recoLength = myTimes.Length
The second example retrieves the recognition length by directly accessing the RecoResult structure.
Dim recoLength As Variant
recoLength = RecoResult.Times.Length
You are reading help file online using chmlib.com
|