Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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