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: TTS.cpp
- Revision:
- 2:eceeac07154b
- Parent:
- 1:548323cfdb5d
- Child:
- 3:d12c34704b6d
--- a/TTS.cpp Mon Jun 12 19:24:16 2017 +0000 +++ b/TTS.cpp Sat Jun 24 14:10:48 2017 +0000 @@ -341,7 +341,7 @@ static void soundOff(void) { - dac.write(0); + //dac.write(0); } #define PWM_TOP (1200/2) @@ -349,7 +349,7 @@ //https://sites.google.com/site/qeewiki/books/avr-guide/pwm-on-the-atmega328 static void soundOn(void) { - dac.write(0); + // dac.write(0); // initialise random number seed seed0 = 0xecu;