You are reading help file online using chmlib.com
|
Interface: ISpeechPhraseInfo
The RetainedSizeBytes property returns the size in bytes of the retained audio data for the audio format specified.
It is possible that the application needs the retained audio in a format different from the input audio stream; therefore, RetainedAudioSizeBytes and AudioSizeBytes could be different as well. In this case, the scaled (or converted) retained audio will be RetainedAudioSizeBytes in length and AudioSizeBytes will be the size of the original stream length. AudioSizeBytes changes only if the quality of the original format of the stream changes, and in doing so, requiring more or fewer bytes.
Set: | (This property is read-only) |
Get: | Long = ISpeechPhraseInfo.RetainedSizeBytes |
The following code snippet assumes a valid recognition RecoResult, although it still checks for validity. In the sample below, RetainedSizeBytes will be the same as AudioSizeBytes since no scaling takes place.
If Not RecoResult Is Nothing Then
Dim rp As ISpeechPhraseInfo
Set rp = RecoResult.PhraseInfo
MsgBox "RetainedSizeBytes: " & rp.RetainedSizeBytes
End If
You are reading help file online using chmlib.com
|