tom dunigan
/
tts
text-to-speech through DAC to audio amp/speaker
text-to-speech TTS
- This program was based on modifying the Arduino/Teensy TTS library https://github.com/manitou48/TTS
- The audio is generated with the ARM's DAC pin.
- TTS.h selects DAC pin based on MBED board. Only tested on K64F
- Teensy discussions https://forum.pjrc.com/threads/44587-TTS-(Text-to-Speech)-Library-Port
Diff: main.cpp
- Revision:
- 0:bcd16e4a0207
diff -r 000000000000 -r bcd16e4a0207 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Jun 11 11:03:23 2017 +0000 @@ -0,0 +1,26 @@ +// TTS text to speech from AVR +// https://github.com/manitou48/TTS +// connect DAC pin to audio amp/speaker +#include "mbed.h" +#include "TTS.h" + +TTS text2speech; + + +int main() +{ + printf("hello\n"); + wait(2); + + while (true) { + text2speech.setPitch(6); + text2speech.sayText("Hello master! How are you doin?"); + wait(.5); + text2speech.setPitch(1); + text2speech.sayText("I am fine, thankyou."); + wait(.5); + text2speech.sayText("a a a");; + + wait(5); + } +} \ No newline at end of file