Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# Visual-Studio
Hi All,
I am created a program for continuous speech recognition, but its accuracy is very low. Please help me. I have written code that is the problem?

using SpeechLib;
namespace Speech_Recognition
    public partial class SRForm : Form
        private SpeechLib.SpSharedRecoContext objRecoContext;
        private SpeechLib.ISpeechRecoGrammar grammar;
        public SRForm()
        private void initSAPI()
                //Create Instance The Main Object (SpSharedRecoContext)And Activating The Recognition Event
                objRecoContext = new SpeechLib.SpSharedRecoContext();
                objRecoContext.Recognition += new _ISpeechRecoContextEvents_RecognitionEventHandler(RecoContext_Recognition);
                objRecoContext.EventInterests = SpeechLib.SpeechRecoEvents.SRERecognition | SpeechLib.SpeechRecoEvents.SREAudioLevel;
                //Grammar Creation with Default Value 'ID = 0' And Grammar Activation
               grammar = objRecoContext.CreateGrammar(0);
            catch (Exception ex)
                MessageBox.Show("Exception \n" + ex.ToString(), "Error - initSAPI");

        //Main ObjRecoContext Event And launched when engine recognized a phrase
        public void RecoContext_Recognition(int StreamNumber, object StreamPosition, SpeechRecognitionType RecognitionType, ISpeechRecoResult e)
            //Get And Display Phrase
            string phrase = e.PhraseInfo.GetText(0, -1, true);
           richTextBox1.Text+= phrase + " ";
Thanks in Advance.
Posted 18-Jul-11 2:25am
Edited 18-Jul-11 2:40am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Nothing can be done. This is the quality of the recognition engine you use right now. Alternatively, you could use System.Speech.Recognition,[^] with DictationGrammar. This is simpler, but the qualify will be the same.
The engine provide pretty good quality if all the grammars used at a time and taken together are reasonably small, and all the works used in all of them are distinctly different in pronunciation. This is not a case with DictationGrammar, where the number of looks-alike is enormous.
A have read the article in Scientific American claiming that original Nuance Dragon NaturallySpeaking provides really smooth dictation, never tried:[^].
There is a number of other products I'm not familiar with. See:[^],[^],[^].

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 475
1 OriginalGriff 425
2 Sascha Lefévre 289
3 CPallini 285
4 CHill60 260
0 Sergey Alexandrovich Kryukov 9,773
1 OriginalGriff 9,290
2 Peter Leow 5,137
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 3,036

Advertise | Privacy | Mobile
Web01 | 2.8.150327.1 | Last Updated 17 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100