Speech Synthesis isn't compiling

I downloaded the files for the expansion board I ordered, but the compile has errors.
Thank you for your help!

**C:\Users\CPU00\AppData\Local\Temp\build6563066205848806133.tmp/core.a(main.cpp.o): In function `main':
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:34: undefined reference to `setup'
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:44: undefined reference to `loop'
collect2.exe: error: ld returned 1 exit status
Error compiling.**

I am not sure what to do to get a good compile.

My code is as follows. It is what I downloaded, except I changed the location for the H file.

**//#include <SpeechSynthesis.h>
#include "SpeechSynthesis.h"
void setup()
{
Serial.begin(9600);
}**
**byte ssr[500];//define a character string**
**void loop()
{ 
SpeechSynthesis.buf_init(ssr);//initialize the buff
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);

}**

Hi,

To fix those issues, do the following things:

  1. Assure you have the most recent Arduino IDE software. You can get an updated installation here.

  2. Go to the RB-Dfr- 552 product page and download the documentation under “Useful Links”. You can also get the documentation directly here. We just updated the files with the newest version of the library and samples, which should help your situation. Once the documentation zip file is downloaded, extract it.

  3. Start the Arduino IDE and go to “Sketch”, “Include Library”, “Add .ZIP Library…”. Choose the extracted file “SpeechSynthesisV2.zip”. This will install the library and give you access to the examples. See the attached image for more details.

  4. Still in the Arduino IDE go to “File”, “Examples”, “SpeechSynthesisV2” and click on an example.

  5. Click the verification button and check if it compiles properly.

Please try those steps and let us know how it goes.

Sincerely,
Arduino IDE - Add Library.png

Well, I have learned again.
Thank you for the lesson. It does compile now!

Thank you very much! I can’t wait to get the module in and start improving my robot.

1 Like

We are glad to learn your issue is resolved. When you have completed your robot, we recommend that you post about it here and may attach some pictures/videos of it in function. We are certain the RobotShop community would be interested in learning about your integration of the voice module with your robot.

Sincerely,

Well, I still get a good compile, have a speaker plugged onto the prongs, have another speaker attached at A4.
However, I can hear nothing.
I did put it into program mode for upload, and then switched to run.

As mentioned in your support center ticket, we have contacted the manufacturer to obtain more information. We will post here again once we have more information.

Any luck on the manufacturer having any directions?

I still can’t get this thing to make any noise.
I have also found no helpful documentation on this product.
There are no directions on use, no example code that works…why speaker on 19, for example, and where is a depiction of this working?

Hi,

We are still waiting on information from the manufacturer. We will contact you once we receive a reply. Expect this process to possibly take a few days.

Sincerely,