7   JSGF Grammar Format

Currently, the BeVocal VoiceXML interpreter also supports the Java Speech Grammar Format (JSGF).

Note: Support for this grammar format may be deprecated in a future release.

See http://www.w3c.org/TR/jsgf/ for a description of the Java Speech Grammar Format. See Appendix D of the VoiceXML 1.0 specification for a discussion of JSGF as a VoiceXML grammar format.

BeVocal VoiceXML currently provides Beta-level support for JSGF grammars, with several limitations. The implementation does not support the import statement or semantic tags and does not handle inline grammar fragments. If you use inline JSGF grammars, you must use a complete, syntactically-correct JSGF grammar. For example:

 <grammar>
   <![CDATA[
       #JSGF 1.0; 
       grammar topping;
       public <topping> = 
         ( pepperoni | sausage | mushrooms );
   ]]>
 </grammar>

The recognized extension for an external JSGF grammar file is .jsgf.


[Show Frames]   [FIRST] [PREVIOUS] [NEXT]
BeVocal, Inc. Café Home | Developer Agreement | Privacy Policy | Site Map | Terms & Conditions
Part No. 520-0004-02 | © 1999-2007, BeVocal, Inc. All rights reserved | 1.877.33.VOCAL