Click here to Skip to main content
13,044,705 members (63,444 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 1:25am
Updated 18-Jul-11 1: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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 17 Mar 2013
Copyright © CodeProject, 1999-2017
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