SpeechSynthesis.h

Can anyone help me to get this module to work? Thank you very much!

I added the SpeechSynthesis.h file in all Arduino folders I could find, but it still can't compile?????

I get this error:

speech_english.ino:1:29: fatal error: SpeechSynthesis.h: No such file or directory
compilation terminated.
Error compiling.

I have this code:

#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);
 
}

I added the SpeechSynthesis.h file in all Arduino folders I could find, but it still can't compile?

That is because that is not what you do. The SpeechSynthesis.h file is only part of a library you need the other files too, in a folder called SpeechSynthesis.

Read about posting code in the how to use this forum before you post again.

What other files?

Sorry about posting incorrectly.

Thank you for your help

I put the h file and CPP file in the folder.
I recompiled and got a different error

C:\Users\CPU00\AppData\Local\Temp\build8947008820774472757.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.

What are you trying to compile? That error message tells you that you are not compiling source code written for an arduino.
That libiary folder must be in your libaries folder then you compile just your sketch that you posted at first.

Please supply a link to this libiary that you are trying to use.

Well, I can't find my library to put the files in...
I have a "Speech Synthesis Shield for Arduino" module coming in the mail from http://www.robotshop.com/en/speech-synthesis-shield-arduino.html
The above page contains a zip file to download. That is where I got the files.

They had a download with example code. That is what I'm trying to compile.
I put the files in all the folders on my CPU named library. That didn't work, so I put the call to the H file in quotes and loaded the H file in the same folder as the .ino file.
Both are in a folder called SpeechSynthesis, with a CPP file, as well.

I still get this error:

C:\Users\CPU00\AppData\Local\Temp\build5650692477420145836.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.

Thank you again, for your help.

Down load that file and unzip it.
Then unzip the file SpeechSynthesisV2 and you will get a folder of the same name.

Rename that folder SpeechSynthesis.

Then drag it into your Arduino's library folder. As you seem to be on a PC then I don't know the path but it is in the same folder as the 'My Software' folder inside an Arduino folder. Do not try and put in any place else.

Now start ( or restart ) the Arduino IDE.
Go to the menu File -> Examples -> SpeechSynthesis -> speech_english and the example file will open up. You can then compile this.

I got it to work, at first.
I had to import the library from the sketch menu.

Unfortunately, now my board is unseen.
Normally it shows up on port 3.

Since updating my software to the newest version of Arduino, my boards are not showing up. The Port selection remains unavailable.

That is a driver problem and you should post another thread in the installation and trouble shooting section.

Alright, there is no solution to the Speech Module from http://www.robotshop.com

Avoid buying this product, in my opinion.