VoiceXML Adventure Game - Mother of Perl | WebReference

VoiceXML Adventure Game - Mother of Perl

current pageTo page 2To page 3To page 4To page 5To page 6To page 7
[next]

VoiceXML Adventure Game

Overview

Continuing from Part I of our comprehensive series of VoiceXML tutorials, in Part II we will develop a simple, but fully dynamic VoiceXML application in Perl for the Tellme.com voice portal.

"You are in an open field west of a big white house with a boarded front door. There is a small mailbox here."

Do you remember the original Zork text adventure game and Choose Your Own Adventure books? Maybe you're even old enough to remember the original Adventure game. If you don't, you're missing out. We're going to develop a simple Zork-like application using VoiceXML. In Part III, we will create a more advanced version that utilizes its own XML format for building text adventures.

Examples

As we step through each code example, you will also be able to dial into Tellme and demo the code live on the Mother of Perl Tellme extension. Simply dial 1-800-555-TELL, wait for the Tellme main menu, then dial 1-73759. You will hear a greeting and a menu of options. Dial 2 for Tutorial 21 and then press the number that corresponds with the example in the tutorial. For example, when you see:

Example 1.

you can interact with the source code by pressing 1 on your phone. Each example is also linked to the XML source code file, where you can examine the file in your Web browser, or launch it directly into your favorite XML editor.

In addition to the live examples, you will find the source code for all examples in the tutorial21.zip file, which you can use for free to create your own VoiceXML applications.

Contents

Overview
Creating a Grammar for DTMF Input
Adding Voice Selections
Handling Events
Adding Help
Making Our Adventure Dynamic
Conclusion
Download Tutorial 21
Print Article (HTML | PDF)

current pageTo page 2To page 3To page 4To page 5To page 6To page 7
[next]

https://www.internet.com

Produced by Jonathan Eisenzopf
All Rights Reserved. Legal Notices.
Created: March 8, 2001

URL: https://www.webreference.com/perl/tutorial/21/index.html