Receiving speech and silence notification
The enableSpeechDetectionEvent
parameter is used for instances where the bot requires voice detection or silence detection.
This parameter is different than speechDetection
mentioned in Silence and speech detection, which is used to control/limit speech recognition (Speech-to-Text) services by VoiceAI Connect.
VoiceAI Connect Enterprise supports this feature from Version 3.18 and later.
How do I use it?
These parameters are controlled by the VoiceAI Connect Administrator, or dynamically by the bot during the conversation (bot overrides VoiceAI Connect configuration).
voiceDetected/silenceDetected is sent to the bot using the sendEventsToBot
parameter:
Example:
{ "message": "ConfigCall", "speechDetection": true, "speechDetectionSilencePeriodMS": 500, "sessionID": "90a12cde-af30-456e-b013-085cac67d590" }
Example of events sent to bot:
{ "name": "voiceDetected", "type": "event" }
{ "name": "silenceDetected", "type": "event" }