ISpStream

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

ISpStream

This interface provides two distinct functions:

  • The application developer can wrap an existing stream up by providing both an IStream and its format so that the underlying ISpStreamFormat can provide this data to SAPI when required. The new ISpStream object can be used as an input for SAPI wherever SAPI requires an ISpStreamFormat.
  • ISpStream creates an object from a file suitable for SAPI usage using BindToFile. The helper function SPBindToFile may also be used to simplify this process even further.
Implemented By

Methods in Vtable Order

ISpStream Methods Description
SetBaseStream Sets the base address of the audio stream.
GetBaseStream Retrieves the base address of the audio stream.
BindToFile Binds the audio stream to the file that it identifies.
Close Closes the audio stream.

Development Helpers

Helper Enumerations, Functions and Classes Description
SPSTREAMFORMAT SAPI supported stream formats
CSpStreamFormat Class for managing SAPI supported stream formats and WAVEFORMATEX structures