LV_SRE_StreamCancel

Cancels the stream and discards any sound data.

int LV_SRE_StreamCancel(HPORT hport);

Return Values

LV_SUCCESS

No errors; stream destroyed successfully.

A negative result indicates a specific error:

-1: LV_FAILURE: Currently not streaming; possibly StreamStart was not called.

-12: LV_INVALID_HPORT: Invalid handle.

Parameters

HPort

The port's handle.

Remarks

Cancels the stream. Used in case a WaitForDecode function is not terminating or if end of speech has not been detected. This readies the port to start a new stream, if StreamStart is called.

See Also


Complete Help Topic List | Speech Engine Product Information