This code shows how to access a I2S microphone on an ESP32 (ESP-EYE board), to analyze the recorded frequencies with a fast fourier transform. Then the frequencies are visualized in a browser.
Read the related blog post here: https://blog.squix.org/2019/08/esp32-esp-eye-browser-based-spectrum-analyzer.html