streams-adc-i2s: audio is high pitched and constant popping #2057
-
Hi, I want to experiment with inputting an audio signal into the adc pins of an esp32 and output the audio signal to a pcm5102A DAC. My goal is to create a simple audio filter device, like to add a compressor or eq filter effect. The built in example works but the output audio is high pitched and pops. The pops starts after a few seconds when the esp32 is booted up (no pops for 1 second and pops occur. Audio is high pitched at all times). I am wondering if there is a way to correct this. I’ve already tried disabling the info logs. It makes no changes. I tried changing the channels to 1, it didn’t help. I tried another example (streams-generator-i2s) and it pops but resolved when logging is disabled. I tried 2 of my dacs, same issue. I am using arduino IDE 2.3.6 and using esp32 by Espressif Systems board manager. I am also using a esp32-WROOM-32D connected to an adaptor board. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I never tried this: Mabe you are doing something wrong ? |
Beta Was this translation helpful? Give feedback.
-
Did you follow this advice ? |
Beta Was this translation helpful? Give feedback.
Did you follow this advice ?
The ESP32 ADC is very buggy and provides inconsistent sample rates, so you will need to implement your own logic to avoid this issue e.g. by dynamically resampling from the actual rate to the target rate