ISpeechPhraseInfo AudioStreamPosition Property

Microsoft Speech SDK

Intelligent Interface Technologies Home Page Microsoft Speech SDK

Speech Automation 5.1

Interface: ISpeechPhraseInfo

AudioStreamPosition Property


The AudioStreamPosition property returns the start time in the audio stream for the phrase.


Syntax

Set: (This property is read-only)
Get: Variant = ISpeechPhraseInfo.AudioStreamPosition

Parts

ISpeechPhraseInfo
The owning object.
Variant
Set: (This property is read-only)
Get: A Variant variable that gets the property.

Example

The following code snippet assumes a valid recognition, RecoResult, although it still checks for validity. AudioStreamPosition displays in a message box. A short delay in speaking may yield an AudioStreamPosition of 10,000, for example.

If Not RecoResult Is Nothing Then
	Dim rp As ISpeechPhraseInfo
	Set rp = RecoResult.PhraseInfo
	
	MsgBox "AudioTime: " & rp.AudioStreamPosition
End If