ISpStream (SAPI 5.3)
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.
Methods in Vtable Order
|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.|
|Helper Enumerations, Functions and Classes||Description|
|SPSTREAMFORMAT||SAPI supported stream formats|
|CSpStreamFormat||Class for managing SAPI supported stream formats and WAVEFORMATEX structures|