snapshot
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# Using FLITE Speach to Text
|
||||
|
||||
I am providing a simple sketch which generates sound data with the Flite text to speach engine.
|
||||
You need to install https://github.com/pschatzmann/arduino-flite
|
||||
|
||||
In this demo we provide the result as I2SStream but you can easly replace with any other output stream.
|
||||
|
||||
FLITE is quite big: you need to need to use the custom Partition Schema or RainMaker 4MB no OTA
|
||||
|
||||
## External DAC
|
||||
|
||||
for defails see the [Wiki](https://github.com/pschatzmann/arduino-audio-tools/wiki/External-DAC)
|
||||
@@ -0,0 +1,3 @@
|
||||
# Name, Type, SubType, Offset, Size, Flags
|
||||
nvs, data, nvs, 36K, 20K,
|
||||
factory, app, factory, 64K, 4000K,
|
||||
|
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* @file streams-flite-i2s.ino
|
||||
* You need to install https://github.com/pschatzmann/arduino-flite
|
||||
*
|
||||
* @author Phil Schatzmann
|
||||
* @copyright GPLv3
|
||||
*
|
||||
*/
|
||||
|
||||
#include "flite_arduino.h"
|
||||
#include "AudioTools.h"
|
||||
//#include "AudioTools/AudioLibs/AudioBoardStream.h"
|
||||
|
||||
I2SStream out; // Replace with desired class e.g. AudioBoardStream, AnalogAudioStream etc.
|
||||
Flite flite(out);
|
||||
|
||||
|
||||
void setup(){
|
||||
Serial.begin(115200);
|
||||
AudioToolsLogger.begin(Serial, AudioToolsLogLevel::Info);
|
||||
|
||||
// start data sink
|
||||
auto cfg = out.defaultConfig();
|
||||
cfg.sample_rate = 8000;
|
||||
cfg.channels = 1;
|
||||
cfg.bits_per_sample = 16;
|
||||
out.begin(cfg);
|
||||
}
|
||||
|
||||
// Arduino loop
|
||||
void loop() {
|
||||
Serial.println("providing data...");
|
||||
flite.say("Hallo, my name is Alice");
|
||||
delay(5000);
|
||||
}
|
||||
Reference in New Issue
Block a user