Page 1 of 1

Glitchy audio

Posted: Wed May 10, 2023 1:48 pm
by markpv
Hi,
I am using an ESP32 POE ISO and trying to play an audio file (.wav) from the SD card. It kind of works, it is playing the entire file but very glitchy.

I am reading in a block of data from the SD card and doing an i2s write for each sample, but I'm finding that I have to initialise the SD card read the data, close the SD card and then initialise the i2s on every loop. If I don't do both, I get SD errors and / or incredibly distorted audio.

Because I'm doing that, there is a noticeable glitch on every loop.

Any thoughts or guidance?

Thank you

Mark