MP3 player
-
Is it possible to make the M5 work as a MP3 player?
I mean read from a MP3 file on SD card and output via the speaker?
My son have a project via school and he wants to build a robot that asks 'how was your day'.
I thought about putting it as a mp3 (or any audio file) and play back when some one moves close enough (using Ultra sound distance meter) adding some servos to move the head and eyebrows. adding some neopixels as eyes as well
-
MP3 doesnt seem supported by the M5Stack library, however the Speaker class has 8bit PCM support:
void playMusic(const uint8_t* music_data, uint16_t sample_rate);Still you would have to bind it to the SDcard files, by now the audio is defined in startup_music.c as:
const unsigned char m5stack_startup_music[]Also, this could help you:
https://github.com/MrBuddyCasino/ESP32_MP3_Decoder -
@DoNcK Thansk I will look in to this.
-
Another one wich looks even more promising :
https://github.com/earlephilhower/ESP8266Audio
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login