SpeechRecognitionVoiceCommandDefinitionConstraint 클래스

정의

음성 명령 정의 파일을 기반으로 하는 SpeechRecognizer 개체에 대한 제약 조건입니다.

public ref class SpeechRecognitionVoiceCommandDefinitionConstraint sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class SpeechRecognitionVoiceCommandDefinitionConstraint final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class SpeechRecognitionVoiceCommandDefinitionConstraint
Public NotInheritable Class SpeechRecognitionVoiceCommandDefinitionConstraint
상속
Object Platform::Object IInspectable SpeechRecognitionVoiceCommandDefinitionConstraint
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

설명

SpeechRecognitionResult.Constraint 속성에 액세스하여 이 클래스의 instance 가져옵니다.

Constraints 속성에 제약 조건이 지정되지 않은 경우에도 CompileConstraintsAsync는 항상 RecognizeAsync 또는 RecognizeWithUIAsync 전에 호출되어야 합니다.

속성

IsEnabled

SpeechRecognizer 개체에서 인식을 수행하는 데 제약 조건을 사용할 수 있는지 여부를 가져오거나 설정합니다.

Probability

제약 조건의 가중치 값을 가져오거나 설정합니다.

Tag

제약 조건을 식별하는 데 유용할 수 있는 태그를 가져오거나 설정합니다.

Type

제약 조건의 형식을 가져옵니다.

적용 대상

추가 정보