The PWM audio function uses the internal LEDC peripheral in ESP32 to generate PWM audio, which does not need an external audio Codec chip.
Here is a simple player example that uses PWM to output audio.
Copy to Clipboard
idf.py add-dependency "espressif/pwm_audio^1.0.0"
Copy to Clipboard
Copy to Clipboard