They
will become application_pizza, application_size, and so on. For now, we
simply write them out to a text file to confirm the order goes through.
Interactive Voice
[ 180 ]
It's critical that our PHP outputs valid VXML code. Prophecy will not be able to play
it back to the caller otherwise. Worse yet, it will play an error message to the user.
To ensure success here, we put the proper XML header and prolog at the start of the
PHP file. The rest of the code in PHP is standard VXML code.
You can generate your full voice XML application using PHP. PHP can
pull up information from the database, based on the user's inputs, and
generate VXML or grXML content. All we need to ensure is valid VXML
and grXML code so that the server can play it back as audio.
If you are waiting for more, there is none! We have achieved the titanic feat of taking
a complete pizza order on the phone. Here are some online resources that will help
you in developing voice applications:
Voxeo's VXML Developers Guide: http://www.voicexml-guide.com/
Ken Rehor's World of Voice XML: http://www.kenrehor.com/voicexml/
Reviews, Events and more: http://www.voicexmlplanet.
Pages:
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243