mirror of https://github.com/arendst/Tasmota.git
21 lines
326 B
C++
21 lines
326 B
C++
#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;
|
|
}
|