Partager via


HandleRecognitionErrors (Communications Workflow Sample)

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 Provision and Deploy a UCMA Workflow Application.

  2. In the %ProgramFiles%\Lync Server 2010\UCMA v3.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 3.0 Workflow SDK Documentation