Skip to content

Instantly share code, notes, and snippets.

@maditnerd
Created May 4, 2020 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maditnerd/7428f5649b773708bcb50f787581bef5 to your computer and use it in GitHub Desktop.
Save maditnerd/7428f5649b773708bcb50f787581bef5 to your computer and use it in GitHub Desktop.
#include <Arduino.h>
#include <ESP8266SAM.h>
#include "AudioOutputI2SNoDAC.h"
AudioOutputI2SNoDAC *out = NULL;
void setup()
{
out = new AudioOutputI2SNoDAC();
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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment