• Speech recognition in c#
    5 replies, posted
I can't seem to find a decent tutorial about the voice recognition in c# Anyone willing to help me out ? PS; I already have speech sdk and created a interop DLL
If you need tutorials for something you already have, you need to say what it is you got?
I have nothing I only found a tutorial on text to speech which involved creating the dll, I just found (2 minutes ago) this : [url]http://msdn.microsoft.com/en-us/magazine/cc163663.aspx#S5[/url] I'm looking into this now and I hope this helps someone else.
This looks like what you are looking for [url]http://www.c-sharpcorner.com/UploadFile/ssrinivas/SpeeechRecognitionusingCSharp11222005054918AM/SpeeechRecognitionusingCSharp.aspx[/url]
I already have some basic setup done by using the link I gave you, I looked at your's robber, the zip file only includes an outdated version and no help whatsoever. Thanks anyway [cpp] using System; using System.Collections.Generic; using System.Linq; using System.Text; using SpeechLib; using System.Speech.Recognition; namespace test { class Program { static void Main(string[] args) { Program self = new Program(); SpeechRecognizer recognizer = new SpeechRecognizer(); Choices choice = new Choices(); choice.Add("Hello"); choice.Add("Yes"); choice.Add("No"); Grammar choiceGrammar = new Grammar(new GrammarBuilder(choice)); choiceGrammar.SpeechRecognized += new EventHandler<SpeechRecognizedEventArgs>(self.Send); recognizer.LoadGrammar(choiceGrammar); while (true) { } } void Send(object sender, RecognitionEventArgs Args) { Console.WriteLine(Args.Result.Text); } } } [/cpp] This is what I'm currently using for if anyone needs it.
Why would you need a native DLL? Isn't System.Speech.Recognition all you need?
Sorry, you need to Log In to post a reply to this thread.