earlephilhower / ESP8266Audio

Arduino library to play MOD, WAV, FLAC, MIDI, RTTTL, MP3, and AAC files on I2S DACs or with a software emulated delta-sigma DAC on the ESP8266 and ESP32
GNU General Public License v3.0
1.99k stars 433 forks source link

Error: "I2S is not supported on your board!" #634

Closed carlb6345 closed 1 year ago

carlb6345 commented 1 year ago

In regards to this code snippet that I found here: https://www.esp8266.com/viewtopic.php?p=70494

include

include

include

AudioOutputI2SDAC *out = NULL;

void setup() { out = new AudioOutputI2SDAC(); out->begin(); }

void loop() { ESP8266SAM *sam = new ESP8266SAM; sam->Say(out, "Can you hear me now?"); delay(500); sam->Say(out, "I can't hear you!"); delete sam; }

I cannot get this code to compile. I have an ESP8266 D1 Mini module. Is there a particular setup that I should be using to get this to compile? May I ask exactly what parts you used to get this code to work. Thank you for your help.