Converting mp3 sound clip to file.c

  • Hello

    The core2 factory Arduino demo includes touch screen beep sounds as include *.c files.

    How do I create my own .c files from my own mp3 or wave audio clip?

    And my second question is as an alternative to including and *.c file can I add the sounds to SPIFFS memory, if so how do I play them? can anyone point me to a demo code or tutorial please?