Browse
 
Tools
Rss Categories

LVSpeechPort::StreamStart

Reference Number: AA-00823 Views: 10297 0 Rating/ Voters

Sets up a new stream so that audio can be sent to the ASR for decoding.

Function

  • int StreamStart(void)

Parameters

None.

Return Values

LV_SUCCESS

No errors; stream set up correctly.

LV_INVALID_HPORT

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

LV_FAILURE

The operation failed because the port was shutting down.

LV_EXCEPTION

An exception occurred while processing the request.

Remarks

If you are processing multiple pieces of audio, you need to call this function after calling StreamStop, StreamCancel or after end-of-speech has been detected on a previous utterance.

See Also