Sunday, May 10, 2015

LabView Voice Recognition


Today let’s do something interesting, what about voice recognition on LabView? Something that when we say “Car” in Spanish will look up the word “Carro”, also when we say “Reproductor” move the mouse pointer and makes click on the play button of the Windows Media Player on the screen.

Take into account that my computer is in Spanish but if your computer is in English you can input English words or even another language.

In order to do that we have first to train our computer to get the best audio quality and it could recognize our voice, to do that follow the instructions on the video below.

  
Once we have trained our computer we can start with Labview and I’m going to explain the basic functioning of this exercise.
Once we click on “Run” the voice recognition software from Windows should be turn on and be ready to listen to our commands, and of course, if we say something we want it to recognize it and execute something on our program. In order to do this we need a SubVi that is call “Speech Recognizer Initialize” an it looks like this:

Voice6

I have uploaded the files on a shared folder so you can download it without problems.
So, we have the main program to run in loop continuously where inside of it it has an event case where depending on the event that occurs it will do something, the first one in timeout which is the default event case, you can delete it or you can leave as I did.

Voice_event0

After the timeout event I created  the stop button state event which will STOP the Vi whenever I want it to stop.

Voice_event1

And the last event is the string value event coming from the SubVi “Speech Recognizer Initialize” where we assign one word for each command, we set 6 word (random) to try our program.

Voice_event2

Inside the event case we have different words for each command so to do something different in each command we have to use the case structure like in the image below. In every case is different what we want the program to do.

Voice_event2_case1Voice_event2_case2
Voice_event2_case3Voice_event2_case4
Voice_event2_case5

The program works really as we expected to work and we had to tweak a little bit the mouse pointer because the screen of each computer is different. That is why we have enable the viewing option of the coordinates of the mouse.

Voice4

When we say “Libro” it should go to Google and look up the word libro.

Voice5

When we say “Reproductor” the Windows Media Player should be reproducing the song we programmed.

Voice


You can download the files in this link:
File name: Voice_recognition.zip
Version of Proteus 8.1
BuzzNet Tags:


14 comments:

  1. I like the way you write about Labview training in Noida. Awesome, keep it up.

    ReplyDelete
  2. Great Work i like the post very much the video help me a lot thank you for sharing, can you provide some more detail about labview.

    Labview Training

    ReplyDelete
  3. The information you provided in this Blog is very useful.The information is worth and very useful for the beginners.If You Want More Details About LabVIEW Click here.

    ReplyDelete
  4. Hi it looks like there is a missing program (sub_vi) named " speech recognition text callback.vi)
    Is there a way to get it?
    Thanks!

    ReplyDelete
  5. Very Nice Article to read. Blog articles helped me alot in many ways to find the good solution. Am very happy to comments here. Thanks for sharing this kind of wonderful article in this blog.
    Salesforce Training in Chennai

    Salesforce Online Training in Chennai

    Salesforce Training in Bangalore

    Salesforce Training in Hyderabad

    Salesforce training in ameerpet

    Salesforce Training in Pune

    Salesforce Online Training

    Salesforce Training

    ReplyDelete
  6. Very Nice Article to read. Blog articles helped me alot in many ways to find the good solution. Am very happy to comments here. Thanks for sharing this kind of wonderful article in this blog.
    IELTS Coaching in chennai

    German Classes in Chennai

    GRE Coaching Classes in Chennai

    TOEFL Coaching in Chennai

    spoken english classes in chennai | Communication training

    ReplyDelete
  7. It is amazing and wonderful to visit your site. Thanks for sharing information; this is useful to us....
    ARTIFICIAL INTELLIGENCE COURSE IN DELHI
    FOR MORE INFO:

    ReplyDelete
  8. It is amazing and wonderful to visit your site. Thanks for sharing information; this is useful to us....
    R PROGRAMING INSTITUTE IN DELHI
    FOR MORE INFO:

    ReplyDelete