ISpeechAudio
The ISpeechAudio automation interface supports the control of real-time audio streams, such as those connected to a live microphone or telephone line.
The Format property and the Read, Write and Seek methods are inherited from the ISpeechBaseStream interface.
Automation Interface Elements
The ISpeechAudio automation interface contains the following elements:
Properties | Description |
---|---|
BufferInfo Property | Returns the audio buffer information as an ISpeechAudioBufferInfo object. |
BufferNotifySize Property | Returns the audio stream buffer size information. |
DefaultFormat Property | Returns the default audio format as an SpAudioFormat object. |
EventHandle Property | Returns a Win32 event handle that applications can use to wait for status changes in the I/O stream. |
Format Property | Gets and sets the cached wave format of the audio stream or device. |
Status Property | Returns the audio status as an ISpeechAudioStatus object. |
Volume Property | Gets and sets the volume level. |
Methods | Description |
---|---|
Read Method | Reads data from an audio stream. |
Seek Method | Returns the current read position of the audio stream in bytes. |
SetState Method | Sets the audio state with a SpeechAudioState constant. |
Write Method | Writes data to the audio stream. |