m5stack / M5Core2

M5Core2 Arduino Library
MIT License
262 stars 113 forks source link

Play wav file from SD card #149

Closed Muhlik2018 closed 1 month ago

Muhlik2018 commented 4 months ago

Hi,

I'm trying to play wav file from SD card on my Core 2, I find the M5Unified library seems to have the solution however M5Core2 Library does not. Wondering if you can update the speaker class in M5 Core2 library to the same as M5Unified library, or is any solution can be provided under current M5Core2 library?

Thanks

GOB52 commented 3 months ago

It is recommended to use M5Unified. See also https://github.com/m5stack/M5Unified/issues/29

The M5Core2 Speaker can also play in this way, although the format is limited.

https://github.com/m5stack/M5Core2/blob/develop/examples/Basics/speak_sd/speak_sd.ino

GOB52 commented 2 months ago

Hi @Muhlik2018 What do you think about this?

It is recommended to use M5Unified. See also m5stack/M5Unified#29

The M5Core2 Speaker can also play in this way, although the format is limited.

https://github.com/m5stack/M5Core2/blob/develop/examples/Basics/speak_sd/speak_sd.ino

Tinyu-Zhao commented 1 month ago

The issue has been resolved in PR #151