typedef void (*LV_SRE_StreamStateChangeFn)(long NewState, unsigned long TotalBytes, unsigned long RecordedBytes, void* UserData)
The callback function is called by the speech port each time a stream status changes. Primarily this is used with streams performing barge-in detection and/or end-of-speech detection to notify hardware to stop playing a prompt (barge-in) or to stop recording a user (end-of-speech).
NewState
New state of stream. See Stream Status.
TotalBytes
Total bytes streamed (at point of stream status change), more sound data may still be in the internal unprocessed queue.
RecordedBytes
Total bytes minus data discarded before barge-in was detected.
UserData
Pointer to application defined data.
Note that only a limited number functions are available from within the streaming callback, as using any functions that alter the stream is disallowed. The only allowed functions are:
Complete Help Topic List | Speech Engine Product Information