How to build a voice XML application

Interaction with the user using the voice recognition technology is provided by the VoiceXML (VXML). If you build an application using VXML the user can answer the prompts that are made by the system in audio and the system will collect the audio answers from the user and give responses according to the user's choice for the prompts. Although it looks like a high level interface, you can build a voice XML application with ease using the VoiceXML.

For example the following sample code will prompt the user to choose the city to which he is willing to travel.

<?xml version="1.0"?>
<vxml version="2.0">
<menu>
<prompt>
To which city do you want to travel <enumerate/>
</prompt>
<choice next="http://www.yoursite.com/chicago.vxml">
Chicago
</choice>
<choice next="http://www.yoursite.com/lasvegas.vxml">
Las Vegas
</choice>
<choice next="http://www.yoursite.com/newyork.vxml">
New York
</choice>
<noinput> To which city do you want to travel <enumerate/></noinput>
</menu>
</vxml>

The prompt tag in the above code prompts the user to choose one of the city to which he wants to travel. On choosing a city the user is redirected to another voicexml file based on his choice. Similar interactions can be done and you can build an voicexml application. For more information on the different tags available and some sample code you can refer to W3 voice guide



.

SetApp - 100 Apps for everything you ever wanted to do on Mac

FREE Subscription

Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.

Name:
Email:

Note : We never rent, trade, or sell my email lists to
anyone. We assure that your privacy is respected
and protected.

_______________________________________







 

 

FREE Subscription

Stay Current With the Latest Technology Developments Realted to XML. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.

 

 

Add to My Yahoo!

Visit XML Training Material Guide Homepage

 

 

“Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.”

Copyright - © 2004 - 2019 - All Rights Reserved.