SpeechRecognizer.Enabled 屬性

定義

取得或設定值,這個值表示這個 SpeechRecognizer 物件是否準備好可以處理語音。

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

屬性值

如果這個 SpeechRecognizer 物件正在執行語音辨識則為 true,否則為 false

備註

此屬性的變更不會影響 類別的其他實例 SpeechRecognizer

根據預設, Enabled 屬性值是 true 針對 新具現化的 實例 SpeechRecognizer 。 當辨識器停用時,辨識器的語音辨識文法都無法用於辨識作業。 設定辨識器 Enabled 的屬性不會影響辨識器 State 的屬性。

適用於

另請參閱