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