This chapter is from the book
3.25 lexicon
Element type |
lexicon |
Attributes |
uri |
Parents |
grammar |
Children |
None. |
Description |
References an external grammar lexicon used to specify precise pronunciation information. |
DTD
<!ELEMENT lexicon EMPTY > <!ATTLIST lexicon uri URI #REQUIRED >
Language model
Attributes
-
uri : URI
The URI of the resource describing a grammar lexicon.
Children
None.
Examples
Example 3-29 Using an external grammar lexicon to recognize French names
<?xml version="1.0" encoding="iso-8859-1"?> <vxml version="2.0"> <form id="form"> <field name="firstName"> <prompt>What is your first name?</prompt> <grammar root="names"> <lexicon uri="FrenchNames.file"/> <rule id="names" scope="public"> <one-of> <item>Michel</item> <item>Colette</item> <item>Jean</item> <item>Marie</item> <item>Pierre</item> <item>Jacqueline</item> <item>Guillaume</item> <item>Jeannette</item> </one-of> </rule> </grammar> </field> </form> </vxml>