Sun Java Solaris Communities My SDN Account Join SDN
 
Article

Grammar Format Specification

 

Version 1.0 - October 26, 1998

 

The Java Speech Grammar Format is a platform-independent, vendor-independent textual representation of grammars for use in speech recognition. Grammars are used by speech recognizers to determine what the recognizer should listen for, and so describe the utterances a user may say. JSGF adopts the style and conventions of the Java programming language in addition to use of traditional grammar notations.

 

Contents
 
  Preface
      Technical Scope
      Web Resources
      Mailing Lists
      Revision History
  Contributions
  1.Introduction
      1.1Related Documentation
  2.Definitions
      2.1Grammar Names and Package Names
      2.2Rulenames
      2.3Tokens
      2.4Comments
  3.Grammar Header
      3.1Self-Identifying Header
      3.2Grammar Name Declaration
      3.3Import
  4.Grammar Body
      4.1Rule Definitions
      4.2Rule Expansions
      4.3Composition
      4.4Grouping
      4.5Unary Operators
      4.6Tags
      4.7Precedence
      4.8Recursion
      4.9Uses of <NULL> and <VOID>
      4.10Documentation Comments
  5.Examples
      5.1Example 1: Simple Command and Control
      5.2Example 2: Resolving Names
      5.3Example 3: Documentation Comments