Note

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

Microsoft Speech Platform

CSpStreamFormat

CSpStreamFormat provides methods for working with audio and audio formats.

CSpStreamFormat Methods Description
CSpStreamFormat The class constructors.
~CSpStreamFormat The class destructor.
AssignFormat Assigns (or copies) the instance's current format to a new format (or a new stream).
Clear Clears values from an instance.
CopyTo Copies the instance's wave format to a new stream.
Deserialize Deserializes a stream and passes back a new stream.
DetachTo Makes a copy of the instance's stream and frees (or detaches) the instance's stream.
FormatId Returns the instance's format ID.
IsEqual Compares a specified stream format and format ID to the instance's format and format ID.
ParamValidateAssignFormat Validates the format ID and wave format and creates the stream.
ParamValidateCopyTo Validates the pointers for the format ID and wave format parameters.
Serialize Serializes the stream.
SerializeSize Determines the serialized size of the instance's stream.
WaveFormatExPtr Returns the instance's wave format.