HomeTrainingTechnology TrendsAboutCalendar

Voice XML: Chapter 8 Exercises

 


VoiceXML: Introduction to Developing
Speech Applications

8-1 Modify the VoiceXML code of Exercise 5-2 by modifying the prompts to be

A. Tapered among fields of a form or menus in a hierarchy.

The following are the major prompts presented to the user in the answer to exercise 5-2:

  1. Please say your full name
  2. Use the keys on your telephone to enter your six digit student i.d.
  3. Enter the four digit course i.d.
  4. Say whether you want to drop or add this course?
  5. Say why you want to <value expr="action"/> this course

There is no tapering between prompts 1 and 3 because of the shift in modes from speaking to pressing the keys on the telephone keypad.

There is tapering in prompts 2 and 3: Prompt 2 says "use the key on your telephone to enter." while prompt 3 simply says "enter."

There is no tapering between prompts 3 and 4 because the dialog shifts modes from touch tone to speaking.

We could have reduced prompt 5 to simply "Why?" but instead elected to provide an implicit feedback to user's response to prompt 4.

B. Provide progressive assistance for each successive event handler.

  1. Please say your full name.
    Please say your first and last name.
    Please say your given name and then say your family name.
    For example, Joe Jensen.
  2. Use the keys on your telephone to enter your six digit student i.d.
    Enter your six digit student id by pressing the keys on your telephone keypad.
    Enter the six digit student identification number by pressing the keys on your telephone keypad.
    For example, press key 1, 2, 3, 4, 5, 6
  3. Enter the four digit course i.d.
    Enter the four digit course id of the course you want to drop or add.
    Enter the four digit course id by pressing the keys on your telephone keypad.
    For example, press key 1, 2, 3, 4.
  4. Say whether you want to drop or add this course?
    Do you want to drop this course or add this course?
    Say drop or add.
    To remove this course from your schedule, say drop.
    To insert this course into your schedule, say add.
  5. Say why you want to <value expr="action"/> this course.
    Please explain why you want to <value expr="action"/> this course
    <cond action="drop"/> Please explain why you want to drop this course? For example, time conflict.
    <cond action="add"/> Please explain why you want to add this course? For example, need the extra credit.

8-2 Revise exercise 5-1

A. Replace the multi-level menu by a single-level menu.

B. Insert noinput and nomatch event handlers that are worded to avoid user hyperarticulation.

8-3 Write an application-driven VoiceXML form that accepts a meal order at a pizza restaurant. The application should confirm the order after the order has been entered. The pizza restaurant offers the following menu:

  • Pizzas are three sizes: small, medium, and large
  • Pizzas may have one or more of these toppings: cheese, pepperoni, sausage, peppers, pineapple, and tomatoes
  • Drinks have three sizes: small, medium, and large
  • Drinks may be Coke, Pepsi, Diet Pepsi, lemonade, or water
  • An order may contain zero or more pizzas, and zero or more drinks


8-4 Repeat exercise 10-3 except confirm each pizza and drink as they are entered.

 

a