Play a Sound File

Pressing a button below fetches a sound file from the net and plays it. See the source.

If you see this, your browser does not support or allow applet loading.
Try this (&audio;).

Ditto. Try this (&audio;).

Same here. Try this (&audio;).

The applet class has two parameters: SOUND specifies the URL of the sound file and TEXT specifies the text to be displayed in the button. It caches the sound file on a temporary file to avoid excessive network load.

(RMS Sound file courtesy Jamie Zawinski.)