The Chillidog Software Blog

The ramblings of a developer

MP3 music in Grid Iron

A user recently wrote in asking how to integrate MP3 music into Grid Iron. This is really easy using the HTML audio tag. Note that not all browsers may support this and they may only support specific audio formats.

This example code is what you're going to put in your Google Docs cell. You will need to change the src attribute to point directly to your MP3 file.

<audio controls="controls">
    <source src="song.ogg" type="audio/ogg" />
    <source src="song.mp3" type="audio/mp3" />
    Your browser does not support the audio tag.
</audio>;

Source

That's it! Check out the example spreadsheet here. To try this in your site, use the key:

0AhJsi1PTkjk7dGtULUg0TUk3eUhxcUYxWklYX3Vmbmc

Update:

Will mentioned that there are several tools to convert MP3s into various formats. One is a website called Zamzar. Although I have never used it (and can't vouch for it) it looks interesting. I would personally recommend Max or XLD to convert audio between different formats. Note that you should always convert from the least lossy format to the most lossy format. You should never convert arbitrarily between formats. This will compound loss and degrade your audio quality.