February 28, 2021
Hot Topics:

VoiceXML Adventure Game

  • By Jonathan Eisenzopf
  • Send Email »
  • More Articles »


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.


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.

Page 1 of 7

This article was originally published on December 1, 2002

Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

Thanks for your registration, follow us on our social networks to keep up-to-date