Screamy Guy image and Chant are registered trademarks of Chant Inc.
Chant
  • Company
    • Contact
    • News
    • Resellers
  • Products
    • Developer Workbench
    • GrammarKit
    • KinesicsKit
    • LexiconKit
    • ProfileKit
    • SpeechKit
    • VoiceMarkupKit
    • VoiceXMLKit
    • Helpers
  • Solutions
  • Store
  • Support
    • Account
    • AppClinic
    • Downloads
    • HelpDesk
    • KnowledgeBase
    • News
    • Orders
    • Registration
  • Technologies
  • Sign in
  • Sitemap
  • Search
  • Company
  • Products
  • Solutions
  • Store
  • Support
  • Technologies
  • Account
  • App Clinic
  • Documentation
  • Downloads
  • Help Desk
  • Knowledge Base
  • News
  • Orders
  • Registration
  1. Home
  2. Support
  3. Documentation
  4. GrammarKit
  5. Grammar Syntax Quick Reference
  6. Microsoft SAPI 5 Speech Recognition XML Grammar
  7. SAPI 5 Speech Recognition Grammar Elements and Attributes
  8. Define Element
Browse docs
  • Introduction
  • Grammar Management with GrammarKit
    • Features
    • Architecture
  • Designing Grammars with GrammarKit
    • Grammar Design
      • Create New Grammar
      • Add Rules
      • Compile and Test Grammars
    • Dynamic Grammar Applications
      • Compiling Grammars
      • Event Handling
      • Error Handling
      • Compile Sample
    • Integrating GrammarKit
      • C++Builder VCL and FireMonkey Applications
      • Delphi VCL and FireMonkey Applications
      • Java Applications
      • Microsoft Visual C++ Applications
      • .NET UWP Applications
      • .NET Windows Forms Applications
      • .NET WPF Applications
      • Windows Desktop (WinUI) Applications
    • Grammar Syntax Quick Reference
      • Microsoft SAPI 5 Speech Recognition XML Grammar
        • SAPI 5 Speech Recognition Extensible Markup Language
        • SAPI 5 Speech Recognition Grammar Elements and Attributes
          • Comment Element
          • Define Element
          • Dictation Element
          • Grammar Element
          • ID Element
          • List Element
          • Opt Element
          • Phrase Element
          • Resource Element
          • Rule Element
          • Ruleref Element
          • Textbuffer Element
          • Wildcard Element
        • SAPI 5 Speech Recognition Grammar Special Characters
      • W3C SRGS XML
        • Comment Element
        • Example Element
        • Grammar Element
        • Item Element
        • Lexicon Element
        • Meta Element
        • Metadata Element
        • Oneof Element
        • Rule Element
        • Ruleref Element
        • Tag Element
        • Token Element

Last reviewed: 12/15/2024 8:13:19 AM

Comment Element

<DEFINE>

A <DEFINE> element is used to group one or more <ID> elements.

<GRAMMAR LANGID="409">
    <DEFINE>
        <ID NAME="FIRSTCHOICE" VAL="1"/>
        <ID NAME="SECONDCHOICE" VAL="2"/>
    </DEFINE>
</GRAMMAR>

Attributes

none

Children

<ID>

Parents

<LIST>, <OPT>, <PHRASE>, and <RULE>.

Dictation Element
This site uses cookies to analyze traffic, remember your preferences, and optimize your experience. Learn More.
Company
  • Contact
  • News
  • Resellers
Products
  • Developer Workbench
  • GrammarKit
  • KinesicsKit
  • LexiconKit
  • ProfileKit
  • SpeechKit
  • VoiceMarkupKit
  • VoiceXMLKit
  • Helpers
Solutions
Store
Support
  • Account
  • AppClinic
  • Downloads
  • Help Desk
  • Knowledge Base
  • News
  • Orders
  • Registration
Technologies
Home | Privacy | Sitemap | Terms of Use
Copyright © 2025 Chant Inc.