- Installation
- Administration
- Programmer's Guide
- Grammars
- MRCP Server
- FAQs
typedef void (*LV_SRE_StreamStateChangeFn)(int NewState, unsigned int TotalBytes, unsigned int RecordedBytes, void* UserData)
The callback function is called by the speech port each time there is a change in the stream status. Primarily this is used with streams performing barge-in detection and/or end-of-speech detection to notify the host application to stop playing a prompt (on barge-in) or to stop recording an utterance (on end-of-speech).
NewState
New state of stream. See Stream Status.
TotalBytes
The total number of bytes of audio streamed so far.
RecordedBytes
The total number of bytes of audio recorded so far (since the time barge-in occured).
UserData
A void pointer to a user-defined object which can provide a context when the speech port invokes the callback function.