Browse
 
Tools
Rss Categories

LVSpeechPort::StreamGetLength

Reference Number: AA-00816 Views: 7188 0 Rating/ Voters

Returns length of sound data in stream buffer.

Function

  • int StreamGetLength(void)

Parameters

None.

Return Values

Number of bytes in internal buffer for sound stream. The value is the number of seconds in the audio (from 0 to 30) times the sampling frequency (which is dependent on the format parameter specified).

LV_INVALID_PORT

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

The total number of bytes streamed, not counting bytes before barge-in detection. Can be useful if application wants to stop post barge-in stream after a certain amount of time (as example, to limit a user speech to 10 seconds).

See Also