Dear all..
I am facing serious trouble..kindly help!!!!!!!!!!!!
I am making a project using arduino and voice recognition module v3 to control relay module so that i can control AC lights by voice commands.
I have made all the connections...know how to upload voice commands..
Only problem i am facing it is how to do the coding..
AS in i want like when i say " light on"
so the light connected to relay module 1 switches on..
so the light connected to relay module 1 switches on..
You have to have programmed the shield so that it knows that "light on" is command 3 in group 2, for instance.
Then, when you say "Chocolate ice cream rules", the VR shield can report that command c in group g was issued. Then, it's trivial to make the washing machine come on.
It would help to know which hardware you are waving your hands about.
Link to the VR you are using?
Also it would be better to use "light on" and "turn off light" for your commands. Less chance of the VR acting on the wrong command as "light on" and "light off" are very similar in sound. The "light o" is the majority "sound" of those 2 commands. Using "light on" and "turn off light" will give you enough difference in "sound" so the VR won't easily mistake which command you are saying.
My experience with the EasyVR (3.0 and 2.0) was pretty dismal - even once I got it talking to the EasyVR commander, and train it on the commands, I haven't been able to get more than 10% recognition rates using the included microphone... I don't know if I'm using bad phrases or it just doesn't like how I talk or what, but I've bought two of them (the first one crapped out entirely not long after I got it).
I use a trigger word with three distinct phonemic sounds.
The module "beeps" back.
The trigger word does not do anything, apart from activating a word set.
The next word is the actual command.
Some commands do something, others activate another wordset, others do both.
My recognition settings are "hardest/Far Mic"
I speak in a normal (not loud) commanding voice , at 1-3meters distance.
I have trained the words for that distance in that room.
Don't shout, or use the mic <50cm distance.
I get 80-90% accurace, but never a "wrong" command, because of the trigger word.
I currently use it as an RF remote to control the lights in my house.
The inbuild wordsets have proven to be useless.
"Robot" or a loud fart are recognised as the same thing.
Leo..
Please clarify what you are after here. Are you asking for help with the VR coding or with the part of your sketch that actually controls the relay? I haven't used a VR module before, but it looks from your post that you already have the commands that you want set in the VR software ("I have made all the connections...know how to upload voice commands..").
So it seems from your initial statement that you are asking how to take the output from the VR module and turn it into a digitalWrite on the pin assigned to the relay in your sketch.Is this correct?