text-to-speech through DAC to audio amp/speaker

Dependencies:   mbed

text-to-speech TTS

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;