Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language VXML

Date:04/20/05
Author:Björn Andersson
URL:n/a
Comments:3
Info:http://studio.tellme.com/
Score: (2.95 in 20 votes)
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

Alternative Versions

Comments

>>  kris said on 12/02/06 17:10:46

kris This code will not do the last two lines of the song.

>>  Björn Andersson said on 04/26/07 23:22:12

Björn Andersson ABBA. That's funny. :) Hadn't thought of that my name is the perfect ABBA tribute. Björn Ulvaeus + Benny Andersson = ...

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).

>>  EstellaWhitfield31 said on 05/10/10 16:39:32

EstellaWhitfield31 It is understandable that cash makes us free. But what to do when someone does not have money? The one way is to receive the <a href="http://lowest-rate-loans.com/topics/mortgage-loans">www.lowest-rate-loans.com</a> or credit loan.

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!

Name:

eMail:

URL:

Security Code:
  
Comment: