41. This is your VoiceXML application for the phone...
<?xml version="1.0"?>
<vxml version="2.1">
<form>
<field name="F_1" type=”boolean”>
<prompt>
Hello there! Is a PB and J the
best sandwich on earth? </prompt>
<filled>
<prompt> you said <value expr="F_1"/>.
I couldn't agree more! </prompt>
</filled>
</field>
</form>
</vxml>
Wednesday, September 2, 2009
42. This is your VoiceXML application for SMS....
<?xml version="1.0"?>
<vxml version="2.1">
<form>
<field name="F_1" type=”boolean”>
<prompt>
Hello there! Is a PB and J the
best sandwich on earth? </prompt>
<filled>
<prompt> you said <value expr="F_1"/>.
I couldn't agree more! </prompt>
</filled>
</field>
</form>
</vxml>
Wednesday, September 2, 2009
43. This is your VoiceXML application for Skype....
<?xml version="1.0"?>
<vxml version="2.1">
<form>
<field name="F_1" type=”boolean”>
<prompt>
Hello there! Is a PB and J the
best sandwich on earth? </prompt>
<filled>
<prompt> you said <value expr="F_1"/>.
I couldn't agree more! </prompt>
</filled>
</field>
</form>
</vxml>
Wednesday, September 2, 2009
44. This is your VoiceXML application for AIM....
<?xml version="1.0"?>
<vxml version="2.1">
<form>
<field name="F_1" type=”boolean”>
<prompt>
Hello there! Is a PB and J the
best sandwich on earth? </prompt>
<filled>
<prompt> you said <value expr="F_1"/>.
I couldn't agree more! </prompt>
</filled>
</field>
</form>
</vxml>
Wednesday, September 2, 2009
50. T.1: Hello World
JavaScript and PHP
answer();
say("Hello, world!");
hangup();
Ruby
answer
say "Hello, world!”
hangup
Groovy
answer()
say 'Hello, world!'
hangup()
Python
answer()
say("Hello, world !")
hangup()
Wednesday, September 2, 2009
51. This is your Tropo application for the phone...
answer();
r = ask(
“Hello there! Is a PB and J the best sandwich on
earth?”,
{choices:”yes,no”,
onBadChoice:function(){say(“I did not get that”)}
repeat:3});
say(“you said “+r.value+“. I couldn't agree more!” );
disconnect();
Wednesday, September 2, 2009
52. This is your Tropo application for SMS...
answer();
r = ask(
“Hello there! Is a PB and J the best sandwich on
earth?”,
{choices:”yes,no”,
onBadChoice:function(){say(“I did not get that”)}
repeat:3});
say(“you said “+r.value+“. I couldn't agree more!” );
disconnect();
Wednesday, September 2, 2009
53. This is your Tropo application for Skype...
answer();
r = ask(
“Hello there! Is a PB and J the best sandwich on
earth?”,
{choices:”yes,no”,
onBadChoice:function(){say(“I did not get that”)}
repeat:3});
say(“you said “+r.value+“. I couldn't agree more!” );
disconnect();
Wednesday, September 2, 2009
54. This is your Tropo application for AIM...
answer();
r = ask(
“Hello there! Is a PB and J the best sandwich on
earth?”,
{choices:”yes,no”,
onBadChoice:function(){say(“I did not get that”)}
repeat:3});
say(“you said “+r.value+“. I couldn't agree more!” );
disconnect();
Wednesday, September 2, 2009
55. Want to try that live?
Wednesday, September 2, 2009