SpeechRecognizer.Enabled SpeechRecognizer.Enabled SpeechRecognizer.Enabled SpeechRecognizer.Enabled Property

定义

获取或设置一个值,该值指示此 SpeechRecognizer 对象是否准备好处理语音。Gets or sets a value that indicates whether this SpeechRecognizer object is ready to process speech.

public:
 property bool Enabled { bool get(); void set(bool value); };
public bool Enabled { get; set; }
member this.Enabled : bool with get, set
Public Property Enabled As Boolean

属性值

true 如果此 SpeechRecognizer 对象执行语音识别;否则falsetrue if this SpeechRecognizer object is performing speech recognition; otherwise, false.

注解

对此属性的更改不会影响SpeechRecognizer类的其他实例。Changes to this property do not affect other instances of the SpeechRecognizer class.

默认情况下, Enabled true属性的值针对的是新实例化的实例SpeechRecognizerBy default, the value of the Enabled property is true for a newly instantiated instance of SpeechRecognizer. 当识别器禁用时,识别器的语音识别语法均不能用于识别操作。While the recognizer is disabled, none of the recognizer's speech recognition grammars are available for recognition operations. 设置识别器的Enabled属性不会影响识别器的State属性。Setting the recognizer's Enabled property has no effect on the recognizer's State property.

适用于

另请参阅