I too have the ATOM_SPK and the sample programs run but create no sound, even with the earphone jack.
https://docs.m5stack.com/en/atom/atom_spk
The PlayRawPCM program runs but no sound.
Also the PlayMP3FromSD is missing files, such as AudioFileSourceSD.h.
Has anyone got these to work?
I can get the beep program here to work
https://github.com/PaulskPt/M5Stack_M5Atom_EchoSPKR
But it seems this program makes a constant hum sounds always, and the beep when button pressed. I assume the battery will die faster too.
ps. What's up with tagging posts as being "OLD" - when it's a year ago, but the programs being tried are 4 years old. It sure seems to me that the "thread" of any issue, even decades old, should still be used to keep that context intact. Oh well..