3 ms·
I did something similar a long time ago trying to make a little box that played the Kool-Aid guy saying "Oh Yeah" when you hit a button. It was relatively easy
by kayson 6y ago
I did something similar a long time ago trying to make a little box that played the Kool-Aid guy saying "Oh Yeah" when you hit a button. It was relatively easy to make it work, by resampling and quantizing the .wav, then loading that into an Arduino timer/PWM generator. But as others have said, quality wasn't great.
A big issue I ran into was filling up the data memory, which was what required such limiting quantization. I'm curious if anyone has tried doing this sort of audio but using a noise-shaping quantizer (i.e. Delta Sigma Modulation), as that was my next plan but I forgot about the project.
With DSM, you can generate a higher frequency 1 bit sequence, that when filtered recovers the original audio signal. The benefit here being that for the same amount of storage space, you can push the quantization noise into higher frequencies that aren't as prevalent in speech/music, then filter it off.