15,921,454 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.