Continually Improving.... let us know how support@devdiamond.net Sign in | Sign up
home articles news blog forum  

 
 


 
Skip Navigation LinksHome > Article > VoiceXML :: Grammars
VoiceXML :: Grammars
Abstract :
A speech grammar specifies a list of vocabulary for the user to select from to interact with the VoiceXML application.

Views : 2758
Published : Monday, January 21, 2002
By
HyperLink

Avarage Rating :
Page Page 1 of 1

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:
<vxml version="1.0">
<form id="yyy">
<field name="xxx">
<grammar>
<![CDATA[
[
[excellent]
[good]
[fair]
[poor]
[help]
]
]]>
</grammar>
</field>
</form>
</vxml>


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:
<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>



About Author

        Yasir Send Feedback
        Yasir is a .NET expert, with over 5 years experience in Microsoft Technologies, 8 years overall programming experience, he is the owner, founder & primary contributor of Minwar.com, and he also works as IT Director in the hospitality industry.