So, I was wondering if anybody knew if there was a software solution to converting an MP3 file to the Arduino But, that's NOT a good learning project for a beginner! It normally uses an SD card but if you can understand how the code works it shouldn't be too hard to hard-code a few seconds of audio instead of reading from an SD card. If this is a learning project I suggest you study TMRpcm. Or, maybe the Raspberry Pi (which has audio built-in) may be a better option. The cost will be about the same as an Arduino but you'll get better quality, more memory storage (with an SD card) and it will be WAY easier. If you just need to play audio without any software-features, there are audio boards/shields that work without a microcontroller. What are YOU trying to do? Is this a learning-project? Do you need to play a few seconds of (low quality) audio cheaply? I don't know how this is supposed to work and I'm not going to dig-into it. For now, I'd recommend to use the ESP-ADF directly. There seems to be a third-party library that plays MP3 on Teensy, but no official support.ĮSP32 can also do audio, as mentioned earlier, but I don't think the Arduino support is there (yet?). Boards like the Due also have some hardware for audio, but the Teensy software support is far superior. Some more powerful boards like the Teensy 3.x boards have the necessary hardware to do serious audio (I²S interface with FIFOs and DMA, plenty of RAM and processing power). The 8-bit AVR Arduino's are not suited for audio, not even if you use WAV files. There's also external chips that can play MP3 files (DFPlayer, for example). It should be noted that there are Arduino-compatible boards that support MP3 decoding, like the ESP32 using the ESP-ADF framework. On Linux, it just works, on Windows, you had to install ffmpeg/lame encoders (but I haven't used Windows in years, so it might've changed). Strange, I've been using Audacity to export MP3 files for years. My version of Audacity won’t do that, but then I have an old one. I actually think he might be fooling himself that he is saving the file as an MP3 in the first place.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |