Share via


Microsoft Speech SDK Version 5.1

ISpStreamFormat

ISpStreamFormat inherits from IStream.

This is the minimum extra interface required by SAPI in addition to the IStream interface. Using this interface, SAPI can query the stream to determine the format of the stream data. Almost all SAPI functions requiring or returning a stream will require or return an ISpStreamFormat.

When to Implement

This interface should be implemented when implementing a stream from scratch. If an IStream already exists, SAPI can use it with the provided ISpStream object. In normal usage, this interface does not need to be implemented.

Implemented By

Methods in Vtable Order

ISpStreamFormat Methods Description
GetFormat Passes back the cached format of the 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