Hi,
I have seen there are various audio shields, but I am not familiar with any of them nor much with the Arduino platform, so any help would be very much appreciated.
I am looking for a (preferably lossless) audio playback shield whereby I can play a single short file (up to 2 minutes) on a loop but before every audio play it does some other control like turn LEDs on and off and only when that is done then the same audio file is played again.
Is there any lossless shield that allows me to do that, i.e. play only one specific track only when I send a command?
Oh yeah? First I've heard of this (not doubting you, just first I've heard). Is it easy to implement? (easy-ish in the Arduino sense, nothing is easy easy but I mean not too much hassle)
I have used and am a satisfied customer of the Adafruit Wave Shield, although I think it's no longer in production maybe due to obsolescence?
The length of the file on these types of shields doesn't matter. Typically, they read the file off an SD card so there is tons of memory for the audio file itself.
Very doable with things like the Wave Shield or any of the mp3 ones around today such as
if those formats suit you. As you may or may not know, Adafruit has an excellent reputation for making high quality products in the Arduino space.
Thank you,
where do I find the full API to use it, especially finding out how many playable files are on the card so I can automatically loop through each of them AND regardless of their title?
The sound was saved to Flash because it's pretty short: two .wav files for a total of 500kB. I'm pretty sure I have an example somewhere that uses files saved to an SD card.
Made my repo public. Take a look at audioplayer.cpp. It uses the internal DAC but it's not a big deal to add an external I2S DAC and some of them come with built-in amplifiers.