Not sure if this is the right place to ask...
I am building a sound project on an ESP 32 via I2S using an example from: https://github.com/nhatuan84/esp32-i2s-sdcard-wav-player [/edit:]I use the example file "esp32_i2s_play_sdcard_wav_.ino" as I suspect "DAC_builtin" refers to if the DAC is built into the external ic/shield. I am using a max98357A which I think does not have a DAC built in...? [/edit]
It works fine with the example wav file t.wav posted in the repository.
But when I try to use a custom wav which I exported from audacity it sounds distorted an/or too slow/fast (it sounds fine when I play it within audacity).
This is an example that is totaly distorted when playing from the esp with I2S: badly sounding wav While it sounds fine when playing from audacity.
I tried different settings in audacity exporting 16 bit, 32 bit. 44100 Hz, 11025.
Any hints or tips what I could try or am doing wrong?