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
main.cpp
- Committer:
- manitou
- Date:
- 2017-06-24
- Revision:
- 3:d12c34704b6d
- Parent:
- 0:bcd16e4a0207
File content as of revision 3:d12c34704b6d:
// 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); } }