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

Dependencies:   mbed

text-to-speech TTS

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