LumenVox Dial Plan/Asterisk Pizza Demo: Download and Installation Instructions
The LumenVox Pizza Demo is an application written in the Asterisk Dial Plan that uses the LumenVox Speech Engine. It is meant to demonstrate how to use speech recognition functions in Dial Plan. It also makes use of speech recognition in AGI, the Asterisk Gateway Interface. If you would like to see what it sounds like, you may call our demonstration hotline to interact with a version of it.
The LumenVox Pizza Demo assumes you have some knowledge of working with the Asterisk Dial Plan. The Asterisk Web site contains more information about working with extensions.conf and the Dial Plan.
You will need the LumenVox Speech Engine for Asterisk installed in order to use the demo application.
Once you have download the file, uncompress it to a working directory. You will have to place the files in the proper directories.
- Grammars: All the files that end in .gram are grammar files. They contain the words that will be recognized by the Speech Engine. They need to be placed in the /etc/asterisk/grammars/ directory.
- Sounds: All the files in the PizzaAudio directory (they end in .ulaw or .wav) contain the audio for the prompts. They need to be placed in the /var/lib/asterisk/sounds/ directory.
- Dial Plan: The extensions.conf file is the Dial Plan file that contains the application code. Either move the file into /etc/asterisk/ or copy the code into your existing extensions.conf file.
- LumenVox configuration: The lumenvox.conf file controls settings for the Speech Engine. You will need to copy the [grammars] section into your own lumenvox.conf file, located in the /etc/asterisk/ directory.
- AGI: The say-ingredients.agi file contains Perl script that parses the ingredients spoken by callers and then reads them back. It needs to be placed in the /var/lib/asterisk/agi-bin/ directory.
- You also need to make this file executable. From inside of the /var/lib/asterisk/agi-bin/ directory, type chmod +x say-ingredients.agi and press enter. You will need administrative privileges to execute this command.
When you run the Pizza Demo, you will be able to place a call into your Asterisk machine, dial extension 200 (by default), and get an automated pizza ordering system. The demo will prompt callers to request pizza sizes and toppings by speaking, and it will confirm the order.