m5stack / M5Core2

M5Core2 Arduino Library
MIT License
262 stars 113 forks source link

Add speak_sd example for issue #149 #151

Closed GOB52 closed 1 month ago

GOB52 commented 3 months ago

Added example for Issue #149. It reads a wav file from an SD card and plays it back.

Tinyu-Zhao commented 1 month ago

I think you can put the file speak_sd.wav into the example folded so that users can use the example faster. Otherwise, you may need to find a suitable wav file, which will take some time.

GOB52 commented 1 month ago

I think you can put the file speak_sd.wav into the example folded so that users can use the example faster. Otherwise, you may need to find a suitable wav file, which will take some time.

Does M5 have sound data without rights issues? If you have it, I will process it, but if not, I will look for CC0 etc.

Tinyu-Zhao commented 1 month ago

I think you can put the file speak_sd.wav into the example folded so that users can use the example faster. Otherwise, you may need to find a suitable wav file, which will take some time.

Does M5 have sound data without rights issues? If you have it, I will process it, but if not, I will look for CC0 etc.

I think I can’t find audio files without copyright issues at the moment. 😂

GOB52 commented 1 month ago

I think I can’t find audio files without copyright issues at the moment. 😂

OK, I will find a file with no rights issues.

GOB52 commented 1 month ago

Resource data, I think it would be better to create a Github Wiki page and upload it there than to put it in a repository. How about it?

Tinyu-Zhao commented 1 month ago

Resource data, I think it would be better to create a Github Wiki page and upload it there than to put it in a repository. How about it?

I think it's okay, it doesn't have to be placed in the main warehouse, maybe other programs will reuse it.

GOB52 commented 1 month ago

Created and uploaded wav to GitHub wiki. Fixes example source code.

Tinyu-Zhao commented 1 month ago

I think this is perfect, thanks for the PR.

Cupcc commented 2 weeks ago

why the display filled with purple color after I uploaded this file?