다음을 통해 공유


RecognizeUserInput (Communications Workflow Sample)

This sample speech workflow application demonstrates how to use grammars to recognize both speech and dual-tone multi-frequency (DTMF) inputs. The user is asked to enter their PIN, and the user can respond by speaking the PIN or entering it using a keypad. The application recognizes the input and repeats it back to the user.

  • Use the SpeechQuestionAnswerActivity.DtmfGrammars and SpeechQuestionAnswerActivity.Grammars properties.

  • Use grammars with the SpeechHelpCommandActivity and SpeechRepeatCommandActivity activity.

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 RecognizeUserInput.

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

See Also

Other Resources

Unified Communications Managed API 3.0 Workflow SDK Documentation