Click here to Skip to main content
15,921,454 members

Comments by Cool Bhakti (Top 5 by date)

Cool Bhakti 30-Oct-11 3:55am View    
Hey thanks for your help. I have provided more details. Can you please give me more suggestions?
Cool Bhakti 30-May-11 8:47am View    
hey my TargetInvocation prblem is solved. The two speech recognizer objects that I had created were actually creating problem. Both were activating the speech engine at the same time. Problem solved & I submitted my project successfully. Thanx for ur help. Got to learn new things!
Cool Bhakti 24-May-11 0:44am View    
I hav provided more info regarding my problem...check it & see if you have any solution.
Cool Bhakti 23-May-11 10:47am View    
Deleted
//window1.xaml.cs
SpeechRecognizer recognizer = new SpeechRecognizer();
GrammarBuilder grammar = new GrammarBuilder();
grammar.Append(new Choices("one","two","three","four","five","six","seven","eight","nine","zero","plus","minus","divide","multiply","mod","squaroot",
"onebyx","negate","equal","point","clearentry","clearall","memplus","memrecall","memsave","memclear","factorial","log","loan","raiseto","pi","backspace","sum","speak","loan"));
recognizer.LoadGrammar(new Grammar(grammar));
recognizer.SpeechDetected += recognizer_SpeechDetected;
recognizer.SpeechRecognized += recognizer_SpeechRecognized;
recognizer.SpeechRecognitionRejected += recognizer_SpeechRejected;
recognizer.SpeechHypothesized += recognizer_SpeechHypothesized;
private void recognizer_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
{
//code for window1 recognizer
}




window2 handles different functions so I am creating a diffrnt speech recognizer for it.
//window2.xaml.cs
SpeechRecognizer recog = new SpeechRecognizer();

recog.LoadGrammar(new Grammar(gb));
recog.SpeechDetected += recog_SpeechDetected;
recog.SpeechRecognized += recog_SpeechRecognized;
recog.SpeechRecognitionRejected += recog_SpeechRejected;
recog.SpeechHypothesized += recog_SpeechHypothesized;

private void recog_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
{
//code for window2 recog
}
Cool Bhakti 18-Mar-11 22:52pm View    
Thanks for ur answer but actually I was confused because WPF can also be used to implement speech applications.