Language VXML
| Date: | 04/20/05 |
| Author: | Björn Andersson |
| URL: | n/a |
| Comments: | 3 |
| Info: | http://studio.tellme.com/ |
| Score: |
The following is a VoiceXML implementation of the 99 Bottles of Beer song.
It can be executed at http://studio.tellme.com/
Author: Björn Andersson <vxml-guru@rymden.nu>
<vxml version="2.0">
<form>
<var name="bottles" expr="99"/>
<block name="verse">
<if cond="bottles == 1">
1 bottle of beer on the wall,
1 bottle of beer.
<else/>
<value expr="bottles"/> bottles of beer on the wall,
<value expr="bottles"/> bottles of beer.
</if>
Take one down, pass it around.
<assign name="bottles" expr="bottles-1"/>
<if cond="bottles == 0">
No more bottles of beer on the wall.
<disconnect/>
<elseif cond="bottles == 1"/>
1 bottle of beer on the wall,
<else/>
<value expr="bottles"/> bottles of beer on the wall,
</if>
<goto nextitem="verse"/>
</block>
</form>
</vxml>
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments
Well, some facts will kill that joke.
Actually, Andersson is Sweden's second most common family name (270360 people) and Björn is Sweden's 38th most common name among men (61099 people). So my name is fairly common here (Sweden has about 9M people).