Sunday, August 17, 2014

Speech Recognition

Hi, I've just recently got into C# etc and I was wondering how I would go about making my speech recognition program to replying so like "if reply = yes please" then it will run a piece of code. Here is a sample of my code which I could use:



case "I want to watch a movie":
case "I want to watch a movie jarvis":
case "jarvis I want to watch a movie":
JARVIS.Speak("Oh course sir, Do you want me to load your usual website");

Then after that if I reply "yes" it loads netflix and if I say "no" it opens google. I know how to open websites etc I would just like some help with a "if reply = (" ")" Or something like that.


Thanks, Have a nice day, Danny :)


No comments:

Post a Comment