HandleRecognitionErrors (Communications Workflow Sample)

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

This sample speech workflow application demonstrates how to use event activities to handle error scenarios, such as no input from the user or the inability to recognize the user's input. While the SpeechQuestionAnswerActivity activity includes functionality to handle these scenarios to some degree, with event activities, specific responses can be implemented when an error situation occurs a specific number of times in a row.

  • Use two speech event activities:ConsecutiveNoRecognitionsSpeechEventActivity and ConsecutiveSilencesSpeechEventActivity.

  • Use the SpeechPrompts.EscalatedSilencePrompt and SpeechPrompts.EscalatedNoRecognitionPrompt property.

  • Use the ResourceManager class to provide culture-specific prompt text.

Prerequisites

See the prerequisites list in Walkthrough: Debugging a Communications Workflow Application.

Running the Sample

To build and debug the sample application

  1. Create a debugging environment. For information about creating a debugging environment, see Establish Accounts on Office Communications Server.

  2. In the UCMA v2.0 SDK\Samples\Workflow directory, open HandleRecognitionErrors.

  3. Debug the HandleRecognitionErrors speech workflow application. For information about debugging this application, see Walkthrough: Debugging a Communications Workflow Application.

See Also

Concepts

Understand Dialog Events

Other Resources

Unified Communications Managed API 2.0 Workflow SDK Documentation