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 オブジェクトのコレクション。

有効な制約オブジェクトは次のとおりです。

音声認識エンジンはそれぞれ 1 つの制約コレクションを保持できます。 制約は次の組み合わせのみが有効です。

重要

認識プロセスを開始する前に制約をコンパイルするには、SpeechRecognizer.CompileConstraintsAsync メソッドを呼び出します。

注釈

Web サービスの制約を使用するには、設定 - プライバシー ->> 音声、手描き入力、入力ページの [Get to know me] オプションをオンにして、[設定] で音声入力とディクテーションのサポートを有効にする必要があります。 音声認識の「音声 入力を認識する」を参照してください。

適用対象

こちらもご覧ください