upgrade to an ATmega328. The shield was designed with the expectation that this upgrade would be available.
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.'
Here is huge collection of C.C. Attribution licensed sound samples! A lot of it is already mono, 16 or 22KHz.
- Zip file containing the digits 0 thru 9 and 'point' place the wave files onto the SD card in the root directory.
- Sketch (for the waveHC library also check the WaveHC library zip for any newer revision) there's a walkthrough here.
You can change the # of buttons and what they're wired to easily. This isn't an exhaustive list but will give you some ideas about how you can do a lot with the WaveHC library. Note that all the changes occur in loop(). The button checking and everything else is the same.
- Play the wave file all the way through, and only once.
- Play one wave file all the way through, in a loop.
- Play all the pressed wave files all the way through, in a loop.
- Play the wave file only when the button is held down and only once (kind of like a musical keyboard).
- Play the wave file only when the button is held down and loop it (kind of like a sampler keyboard).
- Play the wave file all the way through and loop it, but allow other buttons to interrupt.
- Play the wave file all the way through once, but allow other buttons to interrupt.
This similar example plays 6 different files but its for WaveHC library (there's a walkthrough here).
This one plays 4 different files depending on serial characters, good if you have say an xbee you want to use.
you can change the speed of playback for an interesting effect.
Here is the sketch, connect the potentiometer to analog pin 0 (or change the code).
Speak like everyone's favorite baritone Sith lord or sing along with the Lollipop Guild!
rudimentary software volume control as in this sketch.