Click here to Skip to main content
11,647,748 members (70,199 online)
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 1:25am
Edited 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
0 500
1 F-ES Sitecore 410
2 OriginalGriff 322
3 DamithSL 315
4 CPallini 250
0 OriginalGriff 1,342
1 994
2 DamithSL 971
3 Sergey Alexandrovich Kryukov 873
4 CPallini 795

Advertise | Privacy | Mobile
Web01 | 2.8.150804.3 | 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