本文介绍了如何将语音识别引擎放入"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?

推荐答案


这篇关于如何将语音识别引擎放入"if"语句中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-26 08:11
查看更多