Partager via


How to Create a Basic XML Grammar

A grammar contains a set of rules that specify the spoken words and phrases that a speech-enabled application will recognize. A grammar must provide structured, logical speech statements that apply to specific situations. At the same time, a grammar must be general enough to allow slight variations in a statement to enable a more natural speaking style and to provide a better user experience. You can define a grammar structure that uses different elements in a specific sequence to provide the user with logical variations of phrases or single word options.

This section contains topics that demonstrate the process for designing and authoring a simple grammar from basic grammar rules. Each example builds on the previous example and adds a degree of complexity.

In This Section