Hello,
is there any way to play audio (tone, wav, mp3) on a ESP32-S2 board (Adafruit ESP32-S2 TFT Feather, QT Py ESP32-S2) connected to the STEMMA speaker? I thought it would be easy, but now I‘m realizing the board is neither supporting audioio nor audiopwmio. I cannot believe such a powerful board is unable to play any sound.
Audio out with ESP32-S2 and STEMMA Speaker
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- GuitarHero
- Posts: 40
- Joined: Fri Apr 06, 2018 10:01 am
- dastels
- Posts: 15608
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Audio out with ESP32-S2 and STEMMA Speaker
The chip has DAC capability, so I'm not sure. I'm asking internally. Stay tuned.
Dave
Dave
- danhalbert
- Posts: 4613
- Joined: Tue Aug 08, 2017 12:37 pm
Re: Audio out with ESP32-S2 and STEMMA Speaker
The underlying Espressif SDK (ESP-IDF) we use did not have DMA DAC for a while, and our last attempt to try to use it did not work well. See:
https://github.com/adafruit/circuitpython/issues/3898
https://github.com/espressif/esp-idf/issues/6333
You can play tones using pwmio.PWMOut.
audiobusio.I2SOut is available. You can use an I2S amplifier like https://www.adafruit.com/product/3006.
https://github.com/adafruit/circuitpython/issues/3898
https://github.com/espressif/esp-idf/issues/6333
You can play tones using pwmio.PWMOut.
audiobusio.I2SOut is available. You can use an I2S amplifier like https://www.adafruit.com/product/3006.
Please be positive and constructive with your questions and comments.