The ESP8266 variant can display a flat response between 100Hz and 5.2Khz and is limited by the ADC conversion time.
The ESP32 variant, can display a flat response between 50Hz and 20Khz and is less limited by ADC conversion time and uses 512 samples for improved resolution. It could be optimised even further for a wider freqencuy response.