Page 1 of 1

[ESP32] Example for ESP-IDF playing a raw WAV from source via PCM5102?

Posted: Fri Apr 21, 2023 4:46 am
by poiasd
Hi guys, I have an ESP32-C3, and a PCM5102. I am trying to experiment, and want to play a small song (clip) in WAV format, via earphones connected to PCM5102.

I've been looking around, and found some examples via Arduino & the ESP8266 library which worked. However, I wanted to try and do it with esp-idf directly, using i2s.

Are there an examples or references I could take a look at?

For simplicity, I would just store the 15 secs WAV file in the source code. I am not sure how things such as the sampling rate, bits etc, of WAV affect the I2S behavior, and how I should write to the I2S pin.

Thanks

Re: [ESP32] Example for ESP-IDF playing a raw WAV from source via PCM5102?

Posted: Fri Apr 21, 2023 9:28 pm
by MicroController