I want to make a small box for my wife with a picture of my son saying a phrase- "I love you" at the press of a button.
I've seen online that several people have used a microSD card to access the file. An sd card seems like a waste for one file.
I was wondering if I could save the audio information in the sketch, using "hoffman code?" I don't know what exactly hoffman code is; but from what i understand it compresses info by reassigning bits to integer values.
Anyway, does anyone know of a way i can play the sound via pwm from the sketch. I'm using this programmer https://www.sparkfun.com/products/11801 and the Arduino IDE. I don't know much about hex files or fuses.
Without compression, even one second of low-fi monaural audio (e.g. 3kHz bandwidth) will require more memory than the ATtiny85 has. Perhaps it could be made to fit with compression, but then as Mike says, there are other significant resource issues.
Interesting project, at least as an end in itself. Seems I've seem small "toy" voice recorders for a few bucks that will record at least for several seconds.
Also, going through various tutorials, i see that the at tiny will loop through the wav files on the card while power is on....
what about pressing a button to play a file?
So, the project is a box my wife will keep on her desk. when she presses the button the audio file should play. But I was thinking is it possible (to save battery) that the audio only plays when she presses the button? In theory: turns on the circuit plays and turns off the circuit? How do those hallmark cards work? are they always on?
I made this "translator" for last year's maker fair in Rome, people often ask the same questions and some one on the forum translated and recorded my answers. I looked up what number answer and pressed the buttons corresponding to that answer.
I know it is a bit more than you want but I am sure you can pick the bones out of it.
i noticed you have an on switch. is it possible that the num pad can turn on the circuit (maybe with a timer) turn it of (maybe with a relay or something - i have a 6 pin digital relay)