So, to start off, if possible here are my design constraints that I'm dealing with:
Small Cheap Minimal I will probably be doing my own custom board The wav clips will be less than 1Mb (this is worst case scenario, realistically not even half that) This will be powered by a battery of some kind I'm not concerned about audio quality, as long as the clip is recognizable
If you've noticed, these things rule out any shields, which was most of what I found when I was looking for answers.
I have a project where I want to use an interrupt to watch the status of a pushbutton. When triggered, I want to play a very small wav file. The current file is an 8 bit wav file that is 20Kb in size with the project rate set to 8kHz. I'd like to have the file stored on the atmega and have the corresponding PWM values outputted through an analog pin to a transistor that is driving a speaker. (I might have to put an opamp in here, im not sure)
It sounded like it might be feasible based on this post here http://forum.arduino.cc/index.php?topic=253636.0
is this plausible? if not, what changes can I make to it to make it work. I know this is going to be bootstrapping it, so uh, there's that...
My 2 year degree I got a while back taught me enough about electronics to have a technician level understanding, but nowhere near what I need to do circuit design or intermediate programming.
Thanks in advance for any help and/or suggestions.