Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Microsoft Speech Platform

ISpStream

Using ISpStream, you can wrap an existing stream or create an object from a file.

  • Wrap an existing stream by providing both an IStream and its format so that the underlying ISpStreamFormat can provide this data to the Speech Platform when required. The new ISpStream object can be used as an input for the Speech Platform wherever the Speech Platform requires an ISpStreamFormat.
  • Use ISpStream's BindToFile method to create an object from a file that is suitable for the Speech Platform. The helper function SPBindToFile may also be used to simplify this process even further.

Implemented By

  • SpStream

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

Enumeration, Function, or Class Description
SPSTREAMFORMAT The stream formats supported by the Speech Platform.
CSpStreamFormat Class for managing the stream formats and WAVEFORMATEX structures supported by the Speech Platform.