VoiceXML::Server

VoiceXML::Server is an easy-to-use VoiceXML server class.
Download

VoiceXML::Server Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Terry Weissman
  • Publisher web site:
  • http://search.cpan.org/~terry/VoiceXML-Server-1.13/Server.pm

VoiceXML::Server Tags


VoiceXML::Server Description

VoiceXML::Server is an easy-to-use VoiceXML server class. VoiceXML::Server is an easy-to-use VoiceXML server class.SYNOPSIS #!/usr/bin/perl -w use diagnostics; use strict; require VoiceXML::Server; my $server = VoiceXML::Server->new(avoidfirewall => 1); $server->Audio("Pick a number between 1 and 99."); my $num = int(rand(99)) + 1; while (1) { my $guess = $server->Listen(grammar => "NATURAL_NUMBER_THRU_99"); if ($guess < $num) { $server->Audio("No, $guess is too low. Try again."); } elsif ($guess > $num) { $server->Audio("No, $guess is too high. Try again."); } else { $server->Audio("That's right, my number was $num. OK, " . "let's play again. I'm thinking of a " . "different number."); $num = int(rand(99)) + 1; } }VoiceXML::Server is a class implementing a simple server for VoiceXML applications. It was designed in particular to work with Tellme Studio ( http://studio.tellme.com/ ), although it should also work with other VoiceXML products.Using this library, you can make programs that you interact with over the phone. Using Tellme Studio, you can develop and debug your program by calling a toll-free number. You can then publish your finished application to be a part of the main Tellme service, at 1-800-555-TELL.Applications written using VoiceXML::Server install as a CGI scripts. However, unlike most web server software, they do not get repeatedly executed every time the user responds to an interaction. Instead, the script gets invoked only once per user, and it can remember the state of the interaction on the stack and in local variables. This is a much, much easier way to code than traditional web solutions provide, as the above example should illustrate.Requirements:· Perl Requirements: · Perl


VoiceXML::Server Related Software