Tutorial
2: Creating A Multi-Form Application
Typically,
we're going to be asking a bit more out
of our applications than simple prompt
playing. With an ASR or IVR application,
we will need to implement elements that
will control dialog flow, perform recognition
tasks, and handle events.
Suppose
we want to create an application for ordering
a pizza. The first thing you might want
to find out from a caller would be their
phone number. How would this be done?
Gathering
user input with <field>:
The
<field>
item encapsulates a dialog unit which
<prompt>s
a user for input, recognizes the input
according to the rules supplied by a <grammar>,
and may <catch>
any events appropriate to that portion
of the dialog. Below is an example of
what our phone number gathering field
might look like: