Udostępnij za pośrednictwem


Walkthrough: Use Conversational Grammar Builder to Create an Open Question Grammar

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.

Use Conversational Grammar Builder to author speech grammars that recognize a single item of data in an open-ended question.

Prerequisites

Speech Server

Creating Open Question Grammars

To add response nodes

  1. Create a new speech application.

    For more information, see How to: Create a Voice Response Application.

  2. In Solution Explorer, double-click the .gbuilder file under the Grammars node.

  3. In the Answers tree view pane, right-click Answers, and then click Add Concept Answer.

  4. Rename UntitledConceptAnswer as HowMayIHelpYou.

  5. Right-click HowMayIHelpYou, click Add Concept, and then rename the response as TechSupport.

  6. Add two more concepts: BillingandSales.

To add speech training sentences

  1. In the Answers tree view pane, select TechSupport.

  2. In the Answer Examples pane, double-click the first row, and then type Can you reset my password, without using any punctuation to end the sentence.

  3. Add the following additional training sentence for the TechSupport node:

    • I have lost my network access.
  4. In the Answers tree view pane, select Billing, and then add the following two training sentences for this response node:

    • I have a question about my bill.
    • I do not understand some items on my bill.
  5. In the Answers tree view pane, select Sales, and then add the following two training sentences for this response node:

    • I want to buy a red coat.
    • I am looking for large size pants.

Validate and Build the Grammar

The grammar must be compiled to be usable. Before the grammar is compiled, build the lexicon file.

To build the lexicon file

  1. In Solution Explorer, double-click the .cal file in the Lexicons node.

  2. Click Build.

To validate and build the grammar

  1. On the Grammar menu, click Validate Grammar.

    Note the text in the Output pane.

  2. On the Grammar menu, click Compile All.

See Also

Other Resources

Use Conversational Grammar Builder to Create Grammars
Use Speech Grammar Editor to Create Grammars