uSpeech library

yesterday I was searching for some speech recognition stuff & i found out a so called nice speech recognition library for arduino named uSpeech.
here is the link:
[u]http://arjo129.github.com/uSpeech/[/u]
I followed the installation & training & calibration guide as in here:
[u]http://arjo129.github.com/uSpeech/[/u].
I'm having ArduinoIDE version 1.0.0
& when I wanted to run the training sketch I got an error msg saying : 'signal' type not found .
Need help with it.

dattasaurabh82:
yesterday I was searching for some speech recognition stuff & i found out a so called nice speech recognition library for arduino named uSpeech.
here is the link:
[u]http://arjo129.github.com/uSpeech/[/u]
I followed the installation & training & calibration guide as in here:
[u]http://arjo129.github.com/uSpeech/[/u].
I'm having ArduinoIDE version 1.0.0
& when I wanted to run the training sketch I got an error msg saying : 'signal' type not found .
Need help with it.

When you say "the training sketch" do you mean "_SpeechAdvancedTraining.ino"?

Did you put the uSpeech folder in the libraries folder?

Did you move the "_SpeechAdvancedTraining" folder from uSpeech/installation/examples to uSpeech/examples?

Did you shut down an re-start the Arduino IDE?

Did you select _SpeechAdvancedTraining from File->Examples->uSpeech->_SpeechAdvancedTraining?

I did all those and it compiled without error.

Yeah I mean speech training.INO
I did put it in the "library" folder.
No, I did not move it from "_SpeechAdvancedTraining" folder from uSpeech/installation/examples to uSpeech/examples
i did not shut down the computer but re-started the Arduino IDE.
Yes, I did selected "SpeechAdvancedTraining" from File->Examples->uSpeech->_SpeechAdvancedTraining.

It compiles for me under Arduino 1.0.1.

Do you have Arduino UNO selected under Tools->Board?

What file and line does it point to when you get the " 'signal' type not found ." error?

I'm having Arduino 1.0
& I guess boards doesn't matter for compilation.
In the topmost line- signal voice(A0);

this is the screen shot

_SpeechAdvancedTraining:2: error: 'signal' does not name a type

That is the error I get if I comment out the "#include <uspeech.h>" line. Looks like your uspeech.h file is not being found. Mine is in Arduino/libraries/uSpeech/uspeech.h

Your screenshot only shows the last few error messages. Generally it's the first error message that is of interest. You can copy and paste error messages from the Arduino IDE window.

_SpeechAdvancedTraining.cpp:1:21: error: uspeech.h: No such file or directory
_SpeechAdvancedTraining:2: error: 'signal' does not name a type
_SpeechAdvancedTraining.cpp: In function 'void setup()':
_SpeechAdvancedTraining:6: error: 'voice' was not declared in this scope
_SpeechAdvancedTraining.cpp: In function 'void loop()':
_SpeechAdvancedTraining:10: error: 'voice' was not declared in this scope

It says so that the uspeech.h file's absent, but it's there in the folder:

C:\Users\dexter\Documents\Arduino\libraries\uSpeech\uSpeech

this is the header file

/*
uspeech v.1.9.3 (2.0betaRC2)
2012 Arjo Chakravarty

uspeech is a library that allows sounds to be classified into certain phonemes
on the Arduino. This creates a simple beginning for a full scale voice recognition
program.
*/
#ifndef uspeech_h
#define uspeech_h

#include "Arduino.h"
#include <math.h>
#define SILENCE 92
#define F_DETECTION 3
class signal{
public:
int arr[32];
int calib;
signal(int port);
int micPower;
void sample();
unsigned int maxPower();
unsigned int power();
unsigned int complexity(int power);
unsigned long fpowerex(int sum, int xtra); //Todo: Remove
int snr(int power);
void calibrate();
unsigned long filters[18], formants[3], intoned; //Todo: Remove
unsigned int overview[7];
char getPhoneme();
void debugPrintFilter(); //Todo: Remove
void voiceFormants(); //Todo: Remove
//void lowPass(int freq); Todo: Implement moving average low pass filter.
int goertzel(int freq);

private:
int pin;
int mil;
bool silence;
void formantAnal(); //Todo: Remove
};

#endif

this is what's in the folder (after I rename it as "uSpeech"- as Arduino was not taking the file name as it was downloaded).

dattasaurabh82:
_SpeechAdvancedTraining.cpp:1:21: error: uspeech.h: No such file or directory

It says that the uspeech.h file's absent, but it's there in the folder:
C:\Users\dexter\Documents\Arduino\libraries\uSpeech\uSpeech

Did you mean the file is:
C:\Users\dexter\Documents\Arduino\libraries\uSpeech\uSpeech\uspeech.h
or
C:\Users\dexter\Documents\Arduino\libraries\uSpeech\uspeech.h

The second one is correct. The first one has an extra level of folder.

Woohoo!!! It compiled. After I deleted the extra folder, it worked.
Thanks

After I downloaded the _SpeechAdvancedTraining, I got a value of silent of 300 something, f1 as 32 & f2 as 115. So eventually selected 70 (in between f1 & f2 values). Even edited the uspeech.h with these values.

Now the LED test's not working! :~
My LED PIN always remains high.
Tried calibration.pde & it gives a Phenome value as "f' always, & voice strength value keeps on increasing automatically.
I tried to experiment with different valuse of f, u etc in the phenome.cpp also. eventually got confused.
help required

Did the LED Test work before you did the training?

No. I did not that time