Show pageOld revisionsBacklinksExport to PDFBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ===== Grammars ===== **Speech grammars - Grammar element** A speech grammar specifies a list of vocabulary for the user to select from to interact with the VoiceXML application. Following is an example of how you could define a speech grammar: <code> <vxml version="2.0"> <form id="yyy"> <field name="xxx"> <grammar> <![CDATA[ [ [excellent] [good] [fair] [poor] [help] ] ]]> </grammar> </field> </form> </vxml> </code> **DTMF grammars -- DTMF element** A DTMF defines a set of key presses for the user to supply when interacting with the VoiceXML application. Like speech grammars, the DTMF grammar can be either inline or external. Following is an example of how you could define a DTMF grammar: <code> <vxml version="1.0"> <form id="yyy"> <field name="xxx"> <grammar> <![CDATA[ [ [excellent dtmf-1] [good dtmf-2] [fair dtmf-3] [poor dtmf-4] [help dtmf-5] ] ]]> </grammar> </field> </form> </vxml> </code> legacy/vxi_tutorial/grammars.txt Last modified: 2017/07/28 23:53by javier