Error Condition Components
The next set of components handle error conditions such as the user remaining silent (ConsecutiveSilencesSpeechEvent) or saying something that isn’t valid for the question asked and isn’t in the grammar—for example, ConsecutiveNoRecognitionsSpeechEvent. The default logic for a SpeechQuestionAnswer activity is to simply loop and repeat the question, but these activities enable you to have more control. For example, you might determine that after three wrong replies that you want to send the caller to an operator. You can do this by using a ConsecutiveNoRecognitionsSpeechEvent activity and setting its MaximumNoRecognitions property to three. After the user has three wrong replies, ConsecutiveNoRecognitionsSpeechEvent ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access