SpFileStream Interface (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

SpFileStream

The SpFileStream automation object enables data streams to be read and written as files.

SpFileStream objects normally contain audio data, but may also be used for text data.

The Format property and the Read, Write and Seek methods are inherited from the ISpeechBaseStream interface.

Automation Interface Elements

The SpFileStream automation object has the following elements:

Properties Description
Format Property Gets and sets the cached wave format of the stream as an SpAudioFormat object.
Methods Description
Close Method Closes the filestream object.
Open Method Opens a filestream object for reading or writing.
Read Method Reads data from an audio stream.
Seek Method Returns the current read position of the audio stream in bytes.
Write Method Writes data to the audio stream.