Glitchy audio

markpv
Posts: 2
Joined: Wed May 10, 2023 10:19 am

Glitchy audio

Postby markpv » Wed May 10, 2023 1:48 pm

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

Who is online

Users browsing this forum: No registered users and 56 guests