This commit is contained in:
2026-02-12 21:00:02 -08:00
parent 77f8236347
commit 8bdbf227ca
1141 changed files with 1010880 additions and 2 deletions

View File

@@ -0,0 +1,34 @@
/**
@file streams-sam-audiokit.ino
@author Phil Schatzmann
@copyright GPLv3
*/
#include "AudioTools.h"
#include "AudioTools/AudioLibs/AudioBoardStream.h"
#include "sam_arduino.h"
AudioBoardStream kit(AudioKitEs8388V1);
SAM sam(kit);
const char* text = "Hallo my name is SAM";
void setup(){
Serial.begin(115200);
// setup audiokit i2s
auto cfg = kit.defaultConfig();
cfg.bits_per_sample = sam.bitsPerSample();
cfg.channels = sam.channels();
cfg.sample_rate = sam.sampleRate();
cfg.sd_active = false;
kit.begin(cfg);
sam.say(text);
}
void loop() {
// feed watchdog
delay(100);
}