SAPI and Windows 7 Problem?

Perhaps you want to use the .net System. Speech namespace instead of SAPI? There is a very good article that was published a few years ago at msdn.microsoft.com/en-us/magazine/cc1636... .

It is probably the best introductory article I’ve found so far. It is a little out of date, but very helfpul. (The AppendResultKeyValue method was dropped after the beta.

).

Up vote 0 down vote favorite 1 share g+ share fb share tw.

". How I can get all speeches? CODE: SpeechRecognizer _speechRecognizer; public Window1() { InitializeComponent(); // set up the recognizer _speechRecognizer = new SpeechRecognizer(); _speechRecognizer.

Enabled = false; _speechRecognizer. SpeechRecognized += new EventHandler(_speechRecognizer_SpeechRecognized); } windows-7 speech-recognition sapi speech-to-text link|improve this question asked Nov 18 '10 at 8:53Kaan150112 65% accept rate.

Perhaps you want to use the .net System. Speech namespace instead of SAPI? There is a very good article that was published a few years ago at msdn.microsoft.com/en-us/magazine/cc1636....

It is probably the best introductory article I’ve found so far. It is a little out of date, but very helfpul. (The AppendResultKeyValue method was dropped after the beta.

) Are you trying to use a shared recognizer? That may be why you are seeing commands. Do you have a specific task for recognition?

In that case, you would be better served with a task specific grammar and an inproc recognizer. If you need to handle any words, use the DictationGrammar that comes with System.Speech. See msdn.microsoft.com/en-us/library/system.... For fun, I whipped together the simplest .

NET windows forms app to use a dictation grammar that I could think of. I created a form. Dropped a button on it and made the button big.

Added a reference to System. Speech and the line: using System.Speech. Recognition; Then I added the following event handler to button1: private void button1_Click(object sender, EventArgs e) { SpeechRecognitionEngine recognizer = new SpeechRecognitionEngine(); Grammar dictationGrammar = new DictationGrammar(); recognizer.

LoadGrammar(dictationGrammar); try { button1. Text = "Speak Now"; recognizer. SetInputToDefaultAudioDevice(); RecognitionResult result = recognizer.Recognize(); button1.

Text = result. Text; } catch (InvalidOperationException exception) { button1. Text = String.

Format("Could not recognize input from default aduio device. Is a microphone or sound card available? \r\n{0} - {1}.

", exception. Source, exception. Message); } finally { recognizer.

UnloadAllGrammars(); } }.

Thanks Michael. I need to recognize every word. All examples in the link you gave are about building commands actually.

How can I get all? – Kaan Nov 18 '10 at 23:19 If you use the desktop recognizer (That ships in Windows Vista and 7), it comes with a built in Dictation Grammar. See msdn.microsoft.com/en-us/library/… – Michael Levy Nov 19 '10 at 3:26 I updated the answer to include an example of using the DictationGrammar.

– Michael Levy Nov 24 '10 at 20:35 @Michael Levy: I used your code but it is not giving me the accurate answer to what I speak.. :/ why so? – Abid Ali Dec 15 '11 at 11:02 Recognizer results can vary based on many factors. Background noise, Microphone quality, audio input settings and levels.

In Windows 7 with the Dictation grammar, you can also use Windows 7 Speech Recognition features to train the recognizer to better recognize a single speaker. See windows.microsoft.com/en-US/windows7/Set-up-Speech-Recognition for more info. – Michael Levy Dec 15 '11 at 15:25.

Perhaps you want to use the .net System. Speech namespace instead of SAPI? There is a very good article that was published a few years ago at msdn.microsoft.com/en-us/magazine/cc1636... .

It is probably the best introductory article I’ve found so far. It is a little out of date, but very helfpul. (The AppendResultKeyValue method was dropped after the beta.).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions