ArduinoGeneral

Speech Synthesis Shield SKU:DFR0273, IS IT Broken? No~

userHead Leff 2015-06-27 01:09:39 4438 Views0 Replies

Hello, All DFplayer,

I am going to talk about our Speech Synthesis Shield, and further more, it's about the PCB button-rst design. ;)

We've test it on the UNO, MEGA, and found there is a little problem about operation of the button( Reset ). Please follow these steps to check the module you have. Note: If you have a Romeo(leonardo),please modify all Serial.*** toSerial1.***.
 

1 USB cable- Mega - Speech Synthesis Shield - earphone 
2 choose 9600 baud rate, that's

3 put swith to "Prog" side.
And upload the sketch on the wiki. (NOTE:Do not forget the library :) downloadhttps://github.com/Arduinolibrary/DFRobot_Speech_Synthesis_Sheild_DFR0273/blob/master/SpeechSynthesisV2.rar?raw=true)
Code: Select all#include <SpeechSynthesis.h>
void setup()
{
  Serial.begin(9600);
}
 byte ssr[500];//define a character string
void loop()

SpeechSynthesis.buf_init(ssr);//Clear the buffer
SpeechSynthesis.English(ssr,4,"5");//volume in grade 5
SpeechSynthesis.English(ssr,6,"cooki");//"6" means synthesis in English; "cooki"is the content
SpeechSynthesis.English(ssr,4,"5");
SpeechSynthesis.English(ssr,6,"cooki Clock, reset and supply management");
SpeechSynthesis.English(ssr,2,"10");
SpeechSynthesis.English(ssr,6,"cooki Clock, reset and supply management");
SpeechSynthesis.English(ssr,2,"5");//speed of speaking: grade 5
SpeechSynthesis.English(ssr,5," ");//speed,volume,intomation are all set into default
SpeechSynthesis.English(ssr,6,"cooki Clock, reset and supply management");
SpeechSynthesis.Espeaking(0,19,4,ssr);//Executive commands above, "0" is synthesis command; "19" select speaker; "4" speech function  
 
 while(Serial.read()!=0x41)//waiting synthesis complete
  {}
 while(Serial.read()!=0x4F)//waiting play complete
  {}   
SpeechSynthesis.buf_init(ssr);
SpeechSynthesis.English(ssr,6,"hello cooki 123");
SpeechSynthesis.Espeaking(0,19,4,ssr);
   
   while(Serial.read()!=0x41)
  {}
 while(Serial.read()!=0x4F)
  {}   
SpeechSynthesis.buf_init(ssr);
SpeechSynthesis.English(ssr,6,"hello cooki 123");
SpeechSynthesis.Espeaking(0,19,7,ssr);
   
while(1);
   


4 put swith to "Run" side.

5 Press Speech Synthesis Shield button"RST", if the Busy led cannot light on which means play sound, Please press the reset button on the Controler board(Mega). It should work.


Good luck!