The demo applications are developed for the ESP32-S3-BOX-Lite development board and demonstrate the usage of FFT functions from the ESP-DSP library. This example showcases how to use FFT functionality to process audio stream data. The application record sound from two microphones and show the spectrum from them at display as 2D plot.
The audio processing flow contains next blocks:
Just flash the application to the ESP32-S3-BOX-Lite development board, and play some music around or start to speak to the board microphones. The display will show the real-time spectrum. The microphone sensitivity could be adjusted in the code.
This example does not require any special hardware, and can be run on any common development board.
Under Component Config ---> DSP Library ---> DSP Optimization, it's possible to choose either the optimized or ANSI implementation, to compare them.
Build the project and flash it to the board, then run monitor tool to view serial output (replace PORT with serial port name):
Plaintext
idf.py flash monitor
(To exit the serial monitor, type Ctrl-]
.)
See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.
To create a project from this example, run:
idf.py create-project-from-example "espressif/esp-dsp=1.7.0:applications/spectrum_box_lite"