Passing Parameters in VoicePHP Written on February 28, 2009, by coder.
Passing parameters to an application is an important feature of any OS or programming language. It allows creating dynamic applications which can respond to the custom inputs. For example, in voice programming context, creating a common IVR which can serve to two different customers while maintaining the same code base. Again, this is where VoicePHP has [...]
Amazon Shopping – Just a Phone Call Away! Written on February 9, 2009, by coder.
How often you’ve had the need to check an item from an online vendor while shopping in a store? e.g. lets say you were in a bookshop and a novel looks interesting to you. Before purchasing it you want to go over reviews and maybe even want to do a comparative price search and possibly buy it online [...]
Getting Past the VoiceXML Limitations – VoicePHP Audio Player Written on February 3, 2009, by coder.
One of the shortcomings of VoiceXML is its inability to do pause, resume, forward and rewind during a voice playback functionality. VoiceXML specification doesn’t even include such increasingly common features. Brian Brown has succintly identified the lack of same in a well-written article “Is VoiceXML the Right Tool for Your Voice Application”?
Lack of such functionalities really impact the [...]
Listen to your Emails – Part I Written on January 28, 2009, by coder.
Continuing with the series of integrating voice into the web, here is an IMAP email client application. This code shows how VoicePHP can be used to easily write web applications which speaks and listens.
This demo does the following:
It establishes an IMAP connection to the specified IMAP server.
It fetches the new messages in the last 2 days.
It reads [...]
Back-end driven VoicePHP application Written on January 27, 2009, by coder.
All practical applications need to use the data on the back-end to drive certain aspect of the application behavior. For voice based interaction, it can be quite easily done in VoicePHP.
Diagram below shows a typical application flow.
Key steps to look at:
User interacts with the VoicePHP script.
VoicePHP script interacts with the back-end**.
Back-end does a database lookup and [...]
Get your Caller Id Written on January 24, 2009, by coder.
In this example, we show you how easy it is to retrieve caller-id using VoicePHP. Being able to use caller-id can open doors to interesting usage for identifying the user and customizing the application content/behavior.
<?php
echo ”Welcome to VoicePHP Caller ID Demo”;
setvoiceoption(”autospellnumbers”, 7);
echo ”Your caller ID is {$_VOICEPHP['callerid']}”;
?>
Download source code
Try It Now!Call +15672449992 to run the application.
Voice Twitter – Access your tweets over phone – Part I Written on January 21, 2009, by coder.
Do you Twitter? Would’t it be convenient to hear and reply back to tweets using your phone? Here is the code that makes it all possible.
In this code sample, we show you an easy way to retrieve twitter feeds and play them using VoicePHP. This code example also shows how to use JSON (JavaScript Object Notation) within [...]
Voice RSS – Let your blog speak – Part I Written on January 19, 2009, by coder.
How often have you thought that it would be a cool idea to hear your favorite RSS feeds? If you are a blogger or a webmaster, wouldn’t it be a nice addition to have your blogs be spoken to the reader?
Well, think no more. Code below shows a simple implementation of an Voice RSS Reader.
Here [...]
Create your first IVR application using VoicePHP Written on January 18, 2009, by coder.
In this example, we will show you how easy it is to implement an IVR application using VoicePHP in merely a few lines of code. The code is commented and self explanatory. Leave us a comment if you have any questions.





