LVSpeechPort::StreamCancel

Cancels the stream and discards any sound data.

Function

int StreamCancel();

Parameters

None.

Return Values

LV_SUCCESS

No errors - stream destroyed successfully.

LV_FAILURE

The operation failed becasue the port was shutting down.

LV_INVALID_PORT

The port is not valid (either CreateClient has not been called or DestroyClient has been called prior to this call).

LV_EXCEPTION

An exception occured while processing the request.

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

© 2012 LumenVox LLC. All rights reserved.