Click here to Skip to main content
15,890,973 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hey. Is there a way to put a speech recognition engine into a if statement. I have tried but i always get an error and the error is
"Cannot assign RecognizeAsyncStop() because it is in a method group".

This is the code that I have
C#
if (recEngine.RecognizeAsyncStop = true)
{
    MessageBox.Show("Speech Recognition has been disabled")
}


Is there a work around?
Posted
Comments
[no name] 26-Jul-15 13:48pm    
RecognizeAsyncStop is a method, you are missing some (). But your if makes no sense since RecognizeAsyncStop returns void.

1 solution

Yes, learn the language !

The error message tells you that your code don't do what you think it is.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900