Tasmota/lib/lib_audio/ESP8266SAM/examples/Speak/Speak.ino

21 lines
326 B
Arduino
Raw Normal View History

2020-08-13 15:04:30 +01:00
#include <Arduino.h>
#include <ESP8266SAM.h>
#include <AudioOutputI2S.h>
AudioOutputI2S *out = NULL;
void setup()
{
out = new AudioOutputI2S();
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;
}