如何将语音识别引擎放入"if"语句中 [英] How do I put a Speech Recognition Engine into an 'if' statement
本文介绍了如何将语音识别引擎放入"if"语句中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿.有没有一种方法可以将语音识别引擎放入if语句中.我已经尝试过,但总是收到错误,错误是
因为它在方法组中,所以无法分配RecognizeAsyncStop()".
这是我拥有的代码
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
if (recEngine.RecognizeAsyncStop = true)
{
MessageBox.Show("Speech Recognition has been disabled")
}
Is there a work around?
推荐答案
是的,学习语言!
该错误消息告诉您,您的代码没有按照您的想法去做.
Yes, learn the language !
The error message tells you that your code don''t do what you think it is.
这篇关于如何将语音识别引擎放入"if"语句中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文