M5Core2 icon indicating copy to clipboard operation
M5Core2 copied to clipboard

Custom i2s_write src

Open capedra opened this issue 2 years ago • 3 comments

@Tinyu-Zhao How's it possible to generate a custom array that is currently found here (https://github.com/m5stack/M5Core2/blob/master/examples/FactoryTest/FactoryTest/preview_R.c) to play custom sounds/music from my own instead of just M5.Spk.DingDong(); or i2s_write(SPAKER_I2S_NUMBER, previewR, 120264, &bytes_written, portMAX_DELAY);

Thank you very much !!!

capedra avatar Mar 13 '23 07:03 capedra

You can try using these tools.

https://github.com/m5stack/M5Stack/blob/master/tools/bin2code.py

https://github.com/imliubo/A-Eye-Image2array-tool

TinyuZhao avatar Mar 13 '23 08:03 TinyuZhao

Hello,

Take a look at this: Sound on a M5Core2 Is it what you mean?

Regards Tom

digi-thomas2003 avatar Mar 13 '23 17:03 digi-thomas2003

Hello,

Take a look at this: Sound on a M5Core2 Is it what you mean?

Regards Tom

You are giving examples related to playing sound

TinyuZhao avatar Apr 02 '23 15:04 TinyuZhao