Wave Shield Examples
Getting Stack overflow errors?
These examples are all designed for Arduino v10 so try to use that if possible
Get more RAM & Flash!

Before you try to play audio, you'll want to free up some Arduino RAM, so that you don't end up with a nasty stack-overflow.

Follow these instructions on how to get more RAM by reducing the input Serial library buffer. You dont need to do this if you're using an ATmega328

Note that the library is pretty big (about 10K) so if you want to do a lot more, I suggest upgrading to an ATmega328. The shield was designed with the expectation that this part would be available.

Generating speech

If you want a human voice in your project, you can use the free generator at AT&T Text-to-Speech demo page

It will create a 16KHz, 16-bit audio file so you can use the audio 'right out of the box'

Sound sample library
Here is huge collection of C.C. Attribution licensed sound samples! A lot of it is already mono, 16 or 22KHz
Digital audio player

This is the simplest example. It plays every audio file it finds on the SD card in a loop.

PI party!

This example shows how to use the AT&T text-to-speech website to speak the first 2640 digits of pi. The number is stored in flash, each digit is spoken one at a time.

Playing sound based on input

This example plays 6 different files depending on whether buttons connected to the 6 analog input pins are pressed.

Changing the playback rate

By messing with the playback interrupt, you can change the speed of playback for an interesting effect.

Halloween pumpkin
An example of using a sensor to trigger sounds, as well as animating LEDs based on the volume
November 2, 2008 18:16