ISpStream (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3


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 MethodsDescription
SetBaseStreamSets the base address of the audio stream.
GetBaseStreamRetrieves the base address of the audio stream.
BindToFileBinds the audio stream to the file that it identifies.
CloseCloses the audio stream.

Development Helpers

Helper Enumerations, Functions and ClassesDescription
SPSTREAMFORMATSAPI supported stream formats
CSpStreamFormatClass for managing SAPI supported stream formats and WAVEFORMATEX structures