SpeakJet Speech Synthesis demo transformed from Arduino code for KL25Z. Only three wires are needed (SpeakJet Input, 3V3, and GND). The SpeakJet demo says "Hello, my name is Freescale Freedom" and repeats in a loop.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
kuyamarc
Date:
Wed Aug 14 01:19:20 2013 +0000
Parent:
0:2a72f8a7d7ee
Commit message:
Working with Universal 3V3 SpeakJet Shield

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Jul 18 02:25:16 2013 +0000
+++ b/main.cpp	Wed Aug 14 01:19:20 2013 +0000
@@ -1,14 +1,14 @@
 #include "mbed.h"
 
-Serial speakJet(PTC4, PTC3);  // tx, rx
+Serial speakJet(PTA2, PTA1);  // tx, rx
 
 unsigned int message[] = {
     /* hello    */ 183, 007, 159, 146, 164, 6, 6,
     /* my       */ 140, 155, 6,
     /* name     */ 141, 154, 140, 6,
     /* is       */ 8, 129, 167, 6,
-    /* freescale*/ 8, 186, 148, 8, 128, 175, 8, 138, 6, 15, 140, 6,
-    /* freedom  */ 8, 186, 148, 8, 128, 187, 195, 154, 145, 6
+    /* freescale*/ 8, 186, 148, 8, 128, 187, 195, 154, 145, 6,
+    /* freedom  */ 8, 186, 148, 8, 128, 175, 8, 138, 6, 15, 140, 6
 };
 
 int i, messageSize = 40;    // sizeof() function is NOT accurate!