5.1.1 Sending a VAD Event to the Host Application
The DM_VADEVTS parameter in dx_setevtmsk( ) controls whether the firmware sends a VAD event to the host application every time energy is detected. (This is also known as voice event signaling.) This may be useful when you want to halt the playing of the prompt based on other criteria, such as after the caller utters a valid vocabulary word. CSP then sends the pre-speech buffers followed by the speech buffers in real time to the application.
The event sent to the host application is called TEC_VAD. Use sr_waitevt( ), sr_enbhdlr( ), or other SRL function to collect an event code, depending on the programming model in use. For more information on SRL functions, see the Standard Runtime Library Programmer's Guide (in the Voice Software Reference).
This event is only generated when data is being recorded or streamed. If VAD detects energy and a record or stream activity is not occurring, a VAD event is not sent to the host application.
By default, no event is sent to the host application.
For more information on using DM_VADEVTS, see Section5.1.4, Sample VAD Scenarios.
- Note:
- The DM_VADEVTS parameter does not need to be set in order for barge-in and recording/streaming capability to be available.
Click here to contact Dialogic Customer Engineering
Copyright 2001, Intel Corporation