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,3 @@
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 36K, 20K,
factory, app, factory, 64K, 4000K,
1 # Name Type SubType Offset Size Flags
2 nvs data nvs 36K 20K
3 factory app factory 64K 4000K

View File

@@ -0,0 +1,40 @@
/**
* @file espeak-min.ino
* @author Phil Schatzmann
* @brief Arduino C++ API - minimum example. The espeak-ng-data is stored on in
* progmem with the arduino-posix-fs library and we output audio to I2S with the
* help of the AudioTools library
* @version 0.1
* @date 2022-10-27
*
* @copyright Copyright (c) 2022
*/
#include "AudioTools.h" // https://github.com/pschatzmann/arduino-audio-tools
#include "FileSystems.h" // https://github.com/pschatzmann/arduino-posix-fs
#include "espeak.h" // https://github.com/pschatzmann/arduino-espeak-ng
I2SStream i2s; // or replace with any other audio sink
ESpeak espeak(i2s);
void setup() {
Serial.begin(115200);
//file_systems::FSLogger.begin(file_systems::FSInfo, Serial);
// setup espeak
espeak.begin();
// setup output
audio_info espeak_info = espeak.audioInfo();
auto cfg = i2s.defaultConfig();
cfg.channels = espeak_info.channels; // 1
cfg.sample_rate = espeak_info.sample_rate; // 22050
cfg.bits_per_sample = espeak_info.bits_per_sample; // 16
i2s.begin(cfg);
}
void loop() {
espeak.say("Hello world!");
delay(5000);
}