Export (0) Print
Expand All

ISpeechRecoResultDispatch AudioFormat Property (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

Interface: ISpeechRecoResultDispatch

AudioFormat Property

The AudioFormat property gets or sets the audio stream format.

The controlling recognition context must retain the audio portion of the recognition. By default, a recognition context does not retain audio; that is, RecoContext.RetainedAudio is set to SRAONone. Attempts to access this retained audio stream, including references to AudioFormat, cause an SPERR_NO_AUDIO_DATA error. To retain the audio, use ISpeechRecoContext.RetainedAudio passing SRAORetainAudio as the parameter.


Syntax

Get:SpAudioFormat = ISpeechRecoResult.AudioFormat
Set:ISpeechRecoResultDispatch.AudioFormat = SpAudioFormat

Parts

ISpeechRecoResultDispatch
The owning object.
SpAudioFormat
An object variable representing an audio output device.
Get: The token represents the current audio output device of the voice.
Set: The token represents the audio output device assigned to the voice.
In either case, the format for SpAudioFormat.Type is of type SpeechAudioFormatType.

Remarks

*TODO* Description....

Show:
© 2014 Microsoft