O'Reilly logo

Voice Application Development with VoiceXML by Leon Henry Squire, John O'Reilly, Kenneth Michael Farley, Rick Beasley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

reprompt Element

The reprompt element causes the prompt in the current dialog or form item with the highest count attribute less than or equal to the prompt counter to be played.

Example

In the example in Listing 9.14, you add help event handlers to the whether_coupon, coupon_number, and try_again fields in GetCouponInfoEvent.vxml. Also, the prompt in try_again is changed so that, when the prompt is executed a second time within the field, the more concise prompt, “Would you like to try again” is spoken to the user.

Listing 9.14. GetCouponInfoEvent.vxml

<?xml version="1.0"?><!--GetCouponInfoEvent.vxml--><vxml version="1.0" application="BookStoreRoot.vxml" >     <meta name="author" content="John O'Reilly"/>     <meta name="copyright"            ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required