Digital Signal Processing Reference
In-Depth Information
integrated with Java calls that insert dynamic content. A ScenarioXML
compiler was developed to translate
ScenarioXML documents
into
DialogXML [4].
Figure 5-2 shows an example of ScenarioXML; a loop of similar states is
described in a higher level programming style, and a Java function with an
incrementing argument is called to access the external database. In this
example, each function call gets the next instruction for route guidance. After
providing the instruction, execution moves to the next state and gets another
instruction. Figure 5-3 shows another example of ScenarioXML. Since there
are some typical patterns that could be used anywhere in the dialog, those
patterns are described as common arcs. In this example, the Help dialog can
be accessed from any other active dialog if the appropriate common arc is
inserted.
Fig. 5-4 shows a segment of DialogXML generated from the examples of
Fig. 5-2 and Fig. 5-3 by invoking the ScenarioXML compiler. Each state has
an action and a set of arcs. In this example, the action and the first arc were
generated from the main ScenarioXML shown in Fig. 5-2, and the second arc
was added as a common arc from Fig. 5-3. Since route guidance tasks consist
of several steps (directions from an origin to the destination), they will
include several states that are similar to this example. Finally, the DialogXML
document is compiled again to generate the VoiceXML that can be
interpreted by the VoiceXML Interpreter.
Figure 5-2. Example of ScenarioXML: Loop and access to external database.
Search WWH ::




Custom Search