Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
SpConvertStreamFormatEnum
SpConvertStreamFormatEnum converts the specified stream format into a fully populated WAV format structure.
Found in: sphelper.h
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>SpConvertStreamFormatEnum(</strong> <strong> <a runat="server" href="jj127480(v=msdn.10).md">SPSTREAMFORMAT</a></strong> <em>eFormat</em>, <strong> GUID</strong> *<em>pFormatId</em>, <strong> <a runat="server" href="jj127893(v=msdn.10).md">WAVEFORMATEX</a></strong> **<em>ppCoMemWaveFormatEx</em> <strong>);</strong> </pre>
Parameters
- eFormat
[in] The requested stream format. Must be a valid SPSTREAMFORMAT value of SPSF_8kHz8BitMono or greater. - pFormatId
[in, out] The GUID of the new format. May be GUID_NULL if an error occurred. - ppCoMemWaveFormatEx
[out] The populated WAVEFORMATEX structure specified by the supplied SPSTREAMFORMAT.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_OUTOFMEMORY | Exceeded available memory. |
E_INVALIDARG | Either pFormatId or ppCoMemWaveFormatEx is invalid or bad. Alternatively, the specified format is not recognized. |
FAILED(hr) | Appropriate error message. |