Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
GeneralRe: Deserializing Generic List taking a lot of time Pin
abhinish29-Jan-10 16:49
abhinish29-Jan-10 16:49 
GeneralRe: Deserializing Generic List taking a lot of time [modified] Pin
Ilia Blank1-Feb-10 4:54
Ilia Blank1-Feb-10 4:54 
Questionhow to reduce space in between two lines in word Pin
ravindra chintha29-Jan-10 1:35
ravindra chintha29-Jan-10 1:35 
AnswerRe: how to reduce space in between two lines in word Pin
Eddy Vluggen29-Jan-10 1:53
professionalEddy Vluggen29-Jan-10 1:53 
GeneralRe: how to reduce space in between two lines in word Pin
ravindra chintha29-Jan-10 1:57
ravindra chintha29-Jan-10 1:57 
GeneralRe: how to reduce space in between two lines in word Pin
ravindra chintha29-Jan-10 2:04
ravindra chintha29-Jan-10 2:04 
GeneralRe: how to reduce space in between two lines in word [modified] Pin
Eddy Vluggen29-Jan-10 2:20
professionalEddy Vluggen29-Jan-10 2:20 
QuestionSpeech Recognition Pin
krinaljariwala29-Jan-10 1:28
krinaljariwala29-Jan-10 1:28 
Hello,
I want to build an application for writing text in textbox using speech recognition. i.e. if i speak "This is my first application" it should be displayed on textbox.
I have tried but failed. Here is my code.
System.Speech.Recognition.SpeechRecognitionEngine recognizer;       
private void Form3_Load(object sender, EventArgs e)
        {
recognizer = new System.Speech.Recognition.SpeechRecognitionEngine();

            GrammarBuilder dictaphoneGB = new GrammarBuilder();
            GrammarBuilder dictation = new GrammarBuilder();
            dictation.AppendDictation();
            dictaphoneGB.Append(new SemanticResultKey("StartDictation", new SemanticResultValue("Start Dictation", true)));
            dictaphoneGB.Append(new SemanticResultKey("DictationInput", dictation));
            dictaphoneGB.Append(new SemanticResultKey("EndDictation", new SemanticResultValue("Stop Dictation", false)));
            GrammarBuilder spelling = new GrammarBuilder();
            spelling.AppendDictation("spelling");
            GrammarBuilder spellingGB = new GrammarBuilder();
            spellingGB.Append(new SemanticResultKey("StartSpelling", new SemanticResultValue("Start Spelling", true)));
            spellingGB.Append(new SemanticResultKey("spellingInput", spelling));
            spellingGB.Append(new SemanticResultKey("StopSpelling", new SemanticResultValue("Stop Spelling", true)));
            GrammarBuilder both = GrammarBuilder.Add(dictaphoneGB, spellingGB);
            Grammar grammar = new Grammar(both);
            grammar.Enabled = true;
            grammar.Name = "Dictaphone and Spelling ";
            recognizer.LoadGrammar(grammar);

            recognizer.SetInputToDefaultAudioDevice();
            recognizer.RecognizeAsync(RecognizeMode.Multiple);
            recognizer.SpeechRecognized += OnSpeechRecognized;
}

private void OnSpeechRecognized(object sender, System.Speech.Recognition.SpeechRecognizedEventArgs e)
        {
            textBox1.Text = e.Result.Text;         
        }


There is no output.
Please help me i am new to speech recognition.
Thanks in advance.
AnswerRe: Speech Recognition Pin
Migounette29-Jan-10 8:30
Migounette29-Jan-10 8:30 
GeneralRe: Speech Recognition Pin
krinaljariwala1-Feb-10 4:14
krinaljariwala1-Feb-10 4:14 
GeneralRe: Speech Recognition Pin
Migounette4-Feb-10 6:28
Migounette4-Feb-10 6:28 
QuestionGDI Region blending Pin
VCsamir29-Jan-10 0:54
VCsamir29-Jan-10 0:54 
QuestionSystem.Runtime.InteropServices.COMException Pin
Sunil G28-Jan-10 23:45
Sunil G28-Jan-10 23:45 
AnswerRe: System.Runtime.InteropServices.COMException Pin
OriginalGriff29-Jan-10 0:15
mveOriginalGriff29-Jan-10 0:15 
AnswerRe: System.Runtime.InteropServices.COMException Pin
#realJSOP29-Jan-10 0:32
professional#realJSOP29-Jan-10 0:32 
QuestionSource Code Multichat with VC# Pin
ccfqs28-Jan-10 22:09
ccfqs28-Jan-10 22:09 
AnswerRe: Source Code Multichat with VC# Pin
Saksida Bojan28-Jan-10 22:33
Saksida Bojan28-Jan-10 22:33 
AnswerRe: Source Code Multichat with VC# Pin
Richard MacCutchan28-Jan-10 22:34
mveRichard MacCutchan28-Jan-10 22:34 
AnswerRe: Source Code Multichat with VC# Pin
Harvey Saayman28-Jan-10 22:40
Harvey Saayman28-Jan-10 22:40 
AnswerRe: Source Code Multichat with VC# Pin
OriginalGriff28-Jan-10 23:06
mveOriginalGriff28-Jan-10 23:06 
AnswerRe: Source Code Multichat with VC# Pin
ccfqs29-Jan-10 2:06
ccfqs29-Jan-10 2:06 
QuestionVoice authentication using speech recognition Pin
krinaljariwala28-Jan-10 19:33
krinaljariwala28-Jan-10 19:33 
AnswerRe: Voice authentication using speech recognition Pin
Richard MacCutchan28-Jan-10 22:36
mveRichard MacCutchan28-Jan-10 22:36 
AnswerRe: Voice authentication using speech recognition Pin
Eddy Vluggen29-Jan-10 1:45
professionalEddy Vluggen29-Jan-10 1:45 
GeneralRe: Voice authentication using speech recognition Pin
krinaljariwala29-Jan-10 1:53
krinaljariwala29-Jan-10 1:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.