EasyVR code (Voice Recognition)

I tried this code in my arduino and EasyVR shield. I uploaded it using ide 1.0. It does not work, does anyone knows?

#include <SoftwareSerial.h>
int i;
char reader;
SoftwareSerial tx(30,14);// tx on 14
SoftwareSerial rx(12,30);// rx on 12
void setup()
{
for(i=2; i<=11;i++)
pinMode(i, OUTPUT);
reset();
Serial.begin(9600);
tx.begin(9600);
rx.begin(9600);
delay(1000);
tx.print(‘b’);
for(i=0; i<100; i++){
if(rx.read()==‘o’){
Serial.println(“awake”);
break;
}
delay(1);
}//for
tx.print(‘x’);
for(i=0; i<100; i++){
if(rx.read()==‘x’){
Serial.println(“x received”);
break;
}
delay(1);
}//for
tx.print(’ ');
for(i=0; i<100; i++){
if(rx.read()==‘A’){
Serial.println(“firmware good”);
break;
}
delay(1);
}//for
tx.print(‘l’);
tx.print(‘A’);
for(i=0; i<100; i++){
if(rx.read()==‘o’){
Serial.println(“language set”);
break;
}
delay(1);
}//for
tx.print(‘o’);
tx.print(‘A’);
for(i=0; i<100; i++){
if(rx.read()==‘o’){
Serial.println(“Infinite Timeout”);
break;
}
delay(1);
}//for
tx.print(‘i’);
tx.print(‘D’);
Serial.println(“Wordset”);

}//setup
void loop()
{
reader = rx.read();
// Serial.println(reader);
if(reader==‘s’){
Serial.println(reader);
delay(100);
tx.print(’ ');
reset();
}//read
if(reader == ‘B’){
reset();
digitalWrite(2,HIGH);
}
if(reader == ‘C’){
reset();
digitalWrite(3,HIGH);
}
if(reader == ‘D’){
reset();
digitalWrite(4,HIGH);
}
if(reader == ‘E’){
reset();
digitalWrite(5,HIGH);
}
if(reader == ‘F’){
reset();
digitalWrite(6,HIGH);
}
if(reader == ‘G’){
reset();
digitalWrite(7,HIGH);
}
if(reader == ‘H’){
reset();
digitalWrite(8,HIGH);
}
if(reader == ‘I’){
reset();
digitalWrite(9,HIGH);
}
if(reader == ‘J’){
reset();
digitalWrite(10,HIGH);
}
if(reader == ‘K’){
reset();
digitalWrite(2,HIGH);
}
if(reader==‘t’){
Serial.println(reader);
reset();}
if(reader==‘e’){
Serial.println(reader);
reset();}

}//loop

void reset(){
for(i=0; i<1000; i++)
digitalWrite(i, LOW);
delay(100);
tx.print(‘i’);
tx.print(‘B’);

}

Only one instance of SoftwareSerial is listening at any given time. What are the two instances of SoftwareSerial talking to?

I use tx and rx 0 and 1 of the arduino uno.

I use tx and rx 0 and 1 of the arduino uno.

For what?

You have two instances of SoftwareSerial, called rx and tx, These have NOTHING to do with the RX and TX pins of the Arduino.

You need to post schematic, showing what is attached to the Arduino and where.

I just put the voice shield on the arduino and no other connections

I just put the voice shield on the arduino and no other connections

There is a library, with examples, that do not involve two useless instances software serial. Perhaps you should try one of them.