-5
#include <SoftwareSerial.h>// import the serial library

SoftwareSerial Genotronex(10, 11); // RX, TX
int ledpin=13; // led on D13 will show blink on / off
int BluetoothData; // the data given from Computer

void setup() {
  // put your setup code here, to run once:
  Genotronex.begin(9600);
  Genotronex.println("Bluetooth On please press 1 or 0 blink LED ..");
  pinMode(ledpin,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
   if (Genotronex.available()){
BluetoothData=Genotronex.read();
   if(BluetoothData=='1'){   // if number 1 pressed ....
   digitalWrite(ledpin,1);
   Genotronex.println("LED  On D13 ON ! ");
   }
  if (BluetoothData=='0'){// if number 0 pressed ....
  digitalWrite(ledpin,0);
   Genotronex.println("LED  On D13 Off ! ");
   }
}
delay(100);// prepare for next data ...
}

can anyone help me how to write the sketch for voice recognition of the above code. I'm using AMR/BT voice control app`for voice recognition.

  • 3
    Third time asking? Third new user? We don't have a clue what this "AMR/BT" thing is you're on about (or I certainly don't, and neither does Google, so there's no hope for anyone else). – Majenko Mar 7 '16 at 17:21
  • Its an app. Voice recognition app. So i want to add speech recognition to my above code. And also I'm using bluetooth HC-05 – Yap'Z jR Mar 7 '16 at 17:30
  • 1
    How does the app work? What does it do? How does it interface with an Arduino? – Majenko Mar 7 '16 at 18:11
  • 2
    No, I won't. You tell us, by enhancing your question, what it is, what it does, how you use it, and how you expect to use it. – Majenko Mar 7 '16 at 18:24
  • 2
    If you tell us what your mystery app sends to the Arduino we can help you craft the code to interpret that data. Until you tell us that simple basic bit of information we cannot help you. – Majenko Mar 7 '16 at 18:52
2

Your question is not very specific.

But, I think your talking about the AMR_Voice application for Android, and your trying to use the HC-05 BT to connect to your cell. I hope I'm right in my guess, and funny enough, someone over at Instructables did exactly the same thing.

Arduino Voice recognition Via Bluetooth HC-05 - http://www.instructables.com/id/Arduino-Voice-recognition-Via-Bluetooth-HC-05/

Hope this helps!

Not the answer you're looking for? Browse other questions tagged or ask your own question.