Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpStream::Close
ISpStream::Close closes the audio stream or file and validates the close operation.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT Close ( void );</strong> </pre>
Parameters
None.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
SPERR_STREAM_CLOSED | The stream is closed or unavailable. |
FAILED (hr) | Appropriate error message. |
Remarks
Releasing the ISpStream object will automatically call this method. However, any errors encountered will not be sent as notifications to the application. Hence the application can explicitly call this method first to check that no errors occurred during the close operation.