ISpeechRecognitionConstraint インターフェイス

定義

SpeechRecognizer オブジェクトの制約を表します。

public interface class ISpeechRecognitionConstraint
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2041321000, 19816, 17348, 137, 17, 64, 220, 65, 1, 181, 91)]
struct ISpeechRecognitionConstraint
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(2041321000, 19816, 17348, 137, 17, 64, 220, 65, 1, 181, 91)]
public interface ISpeechRecognitionConstraint
Public Interface ISpeechRecognitionConstraint
派生
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

注釈

制約 (文法) は、発声される単語や語句を定義します。これらの単語や語句は、音声認識エンジンによって照合することができる単語や語句です。

アプリにインストールされている定義済みの Web サービス文法 ( 「SpeechRecognitionTopicConstraint」を参照) のいずれかを指定するか、独自のカスタム文法を作成できます (「 SpeechRecognitionGrammarFileConstraint」、「 SpeechRecognitionListConstraint」、「 SpeechRecognitionVoiceCommandDefinitionConstraint」を参照)。

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

プロパティ

IsEnabled

SpeechRecognizer オブジェクトが認識を実行するために制約を使用できるかどうかを取得または設定します。

Probability

制約の重み付けされた値を取得または設定します。

Tag

制約を識別するのに役立つタグを取得または設定します。

Type

制約の型を取得します。

適用対象

こちらもご覧ください