ESP8266Audio
ESP8266Audio copied to clipboard
ESP32 DAC
How do I play sound using ESP32 internal DAC? How to configure AudioOutput? Which AudioOutputClass to use? Thanks in advance
It's already written in the documentation
To use the internal DAC on ESP32, instantiate this class as AudioOutputI2S(0,1), see example PlayMODFromPROGMEMToDAC and code in AudioOutputI2S.cpp for details.
Whats missing from the docs is what pins to use, which are:
bclkPin = 26;
wclkPin = 25;
doutPin = 22;
@trullock Could you kindly explain where and how to define or initilise these pins
Thanks
@sudarshann These are already defined (hard coded) inside this library, see here https://github.com/earlephilhower/ESP8266Audio/blob/9dd4f24056821a2591f825c743d152bab862984a/src/AudioOutputI2S.cpp#L46
Thanks I managed to set something like this for M5stack Atom Echo
out = new AudioOutputI2S(); out->SetPinout(19, 33, 22);
M5stack Atom Echo has an external I2S chip and does not use ESP32 internal DAC