ATP3011 is text speech LSI by AquesTalk pico. This librarry supports I2C interface and "printf()" C format. If ATP3011 talk number or alphabet you select printf(), otherwise, you have to use speech(). When you use printf(), the string must have "\n".

Revision:
1:18e2be0c89a4
Parent:
0:f4577c59b4f5
--- a/ATP3011.cpp	Mon Sep 14 06:46:02 2015 +0000
+++ b/ATP3011.cpp	Mon Oct 19 02:53:39 2015 +0000
@@ -55,7 +55,7 @@
     return val;
 }
 
-int ATP3011::speach(const char *msg, int timeout_ms)
+int ATP3011::speech(const char *msg, int timeout_ms)
 {
     if(strlen(msg) > MAX_CHAR-4)
         return this->ERR_TooLeng;
@@ -85,7 +85,7 @@
     Timer tmpTimer;
     tmpTimer.reset();
     tmpTimer.start();
-    while(1) {
+    while(true) {
         status= this->chkBusy();
         if(status == this->ERR_I2C)
             return this->ERR_I2C;