Page 1 of 1

[Help] AEC not working with ES8311 on custom board using ESP-ADF

Posted: Thu Nov 06, 2025 6:34 am
by adarsh-k
Hi everyone,

I’m trying to get AEC (Acoustic Echo Cancellation) working with a custom board that uses the ES8311 codec for a single microphone and speaker setup.

I’m using the ESP-ADF VoIP example (Release v2.7, commit 9cf556d) and have modified the board files to match my custom hardware. Both the microphone input and speaker output work perfectly. However, I can’t get the AEC feature to function.

Since my design only uses the ES8311 (without a dedicated feedback mic input), I’m relying on its internal return channel feature as described in the ES8311 User Guide
Section 10.4 mentions that the codec provides feedback on the left channel and the microphone input on the right channel, but in my tests, the feedback channel has no audio.

As a comparison, I ran the same VoIP example on an ESP32-S3-BOX3, which uses the ES7210 codec, and the AEC works perfectly there.
Has anyone managed to get AEC working with ES8311 alone using ESP-ADF?
Or does the ADF AEC implementation require a dedicated feedback path from a codec like the ES7210?

Any insights or configuration hints would be greatly appreciated!

Thanks in advance!