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
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.
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.