Text grammar format

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

Text Grammar Format

The context-free grammar (CFG) format in SAPI 5 defines the structure of grammars and grammar rules using the Extensible Markup Language (XML) tagging language. The CFG compiler transforms the XML tags defining the grammar elements into a binary format used by speech engines. This compiling process can be performed either before or during application run time. Speech recognition engines use CFGs to constrain the user's words to words that it will recognize.

Text Grammar Format Section Topics:

Name Description
Text Grammar Format Overview Describes grammar terminology and basic structure.
Grammar Rules and State Graphs Describes rule state graphs with examples.
Designing Grammar Rules General and advanced guidelines for command & control grammars.
Grammar Format Tags Describes the entire set of XML Grammar tags with examples.
Grammar Format Tags: Special Characters Describes tags which use special characters.
SAPI Grammar Example: Solitaire Sample XML grammar covering basic grammar structure.