Speech Automation 5.1
Interface: ISpeechPhraseInfo
AudioSizeTime Property
The AudioSizeTime property returns the phrase audio length in 100-nanosecond units.
Syntax
Set: | (This property is read-only) |
Get: | Long = ISpeechPhraseInfo.AudioSizeTime |
Parts
- ISpeechPhraseInfo
- The owning object.
- Long
-
Set: (This property is read-only)
Get: A Long variable containing the phrase audio length.
Example
The following code snippet assumes a valid recognition, RecoResult, although it still checks for validity. AudioSizeTime displays in a message box. A short phrase such as "Now is the time" might be 26,000,000 100-nanosecond units, or about 2.6 seconds.
If Not RecoResult Is Nothing Then
Dim rp As ISpeechPhraseInfo
Set rp = RecoResult.PhraseInfo
MsgBox "AudioTime: " & rp.AudioSizeTime
End If