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
Create a new speech application.
For more information, see How to: Create a Voice Response Application.
In Solution Explorer, double-click the .gbuilder file under the Grammars node.
In the Answers tree view pane, right-click Answers, and then click Add Concept Answer.
Rename UntitledConceptAnswer as HowMayIHelpYou.
Right-click HowMayIHelpYou, click Add Concept, and then rename the response as TechSupport.
Add two more concepts: BillingandSales.
To add speech training sentences
In the Answers tree view pane, select TechSupport.
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.
Add the following additional training sentence for the TechSupport node:
- I have lost my network access.
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.
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
In Solution Explorer, double-click the .cal file in the Lexicons node.
Click Build.
To validate and build the grammar
On the Grammar menu, click Validate Grammar.
Note the text in the Output pane.
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