Share via


Gathering Input and Stating Results

  Microsoft Speech Technologies Homepage

(Dialog Speech Control Sample)

This sample illustrates basic question and answer cycles, and mixed-initiative interaction in its simplest form. The sample consists of a series of three questions:

What type of coffee would you like?      (Mocha or Latte)
What size would you like? (Tall or Grande)
Whole milk or non-fat? (Whole milk or Non-fat)

The user can respond to each of the questions in turn, which is known as "system-initiative" interaction. The user can also respond with multiple answers at once, which is known as "mixed initiative" interaction. An example of a mixed-initiative interaction is the user response "Mocha, tall, non-fat."

  • Use of inline prompts (using the InlinePrompt) property.
  • Mixed-initiative grammars and processing.
  • An output only (no recognition) QA control to inform the user of their coffee order.
  • BargeIn (the ability of the user to interrupt the prompt with a response).

Running the Sample

Open the sample. After the prompt "What type of coffee would you like?" respond in one of the following ways:

  • Say either Mocha or Latte.
  • Say two of the three required pieces of information. For example, say Mocha, non-fat or with Latte, grande. Notice that the application asks for the missing piece of information.
  • Say all three pieces of information. For example, say Latte, tall, non-fat. Notice that the application updates all three information fields, and then stops running.

Remarks

Because this is a very simple application, it does not support the following:

  • Global commands such as Help, Repeat, or Main Menu.
  • Intelligent handling of user silence or mumbling. Both user silence and mumbling result in the question being repeated verbatim.
  • Confirmation of the user's response.

See Also

Dialog Speech Controls Overview | QA Control | SemanticItem Control | PromptSelectFunction Property

Recognizing and Confirming Answers | Creating Prompt Functions | Voice-only Run-time Behavior