LV_SRE_StreamCancel

Cancels the stream and discards any sound data.

Function

int LV_SRE_StreamCancel(HPORT hport);

Parameters

hport

The port's handle.

Return Values

LV_SUCCESS

No errors - stream destroyed successfully.

LV_FAILURE

The operation failed becasue the port was shutting down.

LV_INVALID_HPORT

The input hport is not a valid one.

LV_EXCEPTION

An exception occured while processing the request.

Remarks

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

See Also

© 2012 LumenVox LLC. All rights reserved.