M5Paper Speaker
-
Hello all,
quick question, it seems the M5Paper does not have a speaker. Would it be possible to add one?Thank you.
-
post this here
https://forum.m5stack.com/category/40/features-wish-list -
Thanks for your reply. I'll put the question within the wish list topics although if anyone could lead me on how to do it myself, it would be great too :)
-
I guess it depends on what you want to do. I assume you want an external speaker, correct? If so, what are your requirements (just buzzer beeps/tones or full wav/mp3 audio) and how do you want to program it (Arduino, uiFlow, or MicroPython)? There are plenty of options out there if you search for I2C speaker.
-
@world101 yep also this is a bit strange we have SPK Hat for Stick but there is no standalone SPK. I think all core units got own internal SPK.
-
Have you got a bluetooth speaker?
If so, you could try using your M5Paper to send audio using a bluetooth a2dp connection to your speaker.
I found this arduino project:
https://github.com/pschatzmann/ESP32-A2DP
After making my own audio sample files, I can send audio from my M5Paper to my M5 Atom Echo (running the default factory firmware). I can also send to my other Urban Revolt bluetooth speaker, so it seems to be working correctly.
-
@veryalien
That’s awesome! Care to share your project and samples? I would like to play around with it. -
@world101 You can just use the files in the ESP32-A2DP project as a start.
I didn't change anything in the arduino library, I just had to change the name of the speaker (obviously) in the bt_music_sender_write example. There's an error in that sample project at the moment as StarWars10 is defined, but the data is actually called StarWars30, just rename it and it should compile.
I had the problem that the original sample played at double speed! I've followed the instructions to create new samples in audacity and export/convert them. Make sure to exactly create 44100 stereo 16-bit PCM data files, convert with xxd and then use TwoChannelSoundData so it plays at the correct speed. -
Thanks for your updates. I will give it a try.
-
@mati I've posted the suggestion on the wish list but somehow it got deleted :S
-
@world101 Thanks for your reply. For the project I have in mind, I just only need beeps, but if I'm going to hack around, I'll try to attach a speaker since it would allow me to do many other things. For programming I'd go with Arduino.