SpeechRecognizer.Constraints 屬性

定義

取得目前新增至 SpeechRecognizer 物件的條件約束物件的集合。

public:
 property IVector<ISpeechRecognitionConstraint ^> ^ Constraints { IVector<ISpeechRecognitionConstraint ^> ^ get(); };
IVector<ISpeechRecognitionConstraint> Constraints();
public IList<ISpeechRecognitionConstraint> Constraints { get; }
var iVector = speechRecognizer.constraints;
Public ReadOnly Property Constraints As IList(Of ISpeechRecognitionConstraint)

屬性值

ISpeechRecognitionConstraint物件的集合。

有效的條件約束物件包括:

每個語音辨識器可以有一個限制式集合。 只有下列限制式組合是有效的:

重要

先呼叫 SpeechRecognizer.CompileConstraintsAsync 方法編譯限制式,再開始辨識處理序。

備註

若要使用 Web 服務的限制,必須在 [設定] -> [隱私權] -> [語音、筆跡與輸入] 頁面的 [設定] 中開啟 [了解我] 選項以啟用語音輸入與聽寫支援。 請參閱語音辨識中的「辨 語音輸入」。

適用於

另請參閱