Audio out with ESP32-S2 and STEMMA Speaker

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
GuitarHero
 
Posts: 40
Joined: Fri Apr 06, 2018 10:01 am

Audio out with ESP32-S2 and STEMMA Speaker

Post by GuitarHero »

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.

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Audio out with ESP32-S2 and STEMMA Speaker

Post by dastels »

The chip has DAC capability, so I'm not sure. I'm asking internally. Stay tuned.

Dave

User avatar
danhalbert
 
Posts: 4613
Joined: Tue Aug 08, 2017 12:37 pm

Re: Audio out with ESP32-S2 and STEMMA Speaker

Post by danhalbert »

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.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”