EVENTACTION structure (eventdetectoroemadapter.h)
Structure used to provide detail from ParseDetectionResults.
Syntax
typedef struct __MIDL___MIDL_itf_eventdetectoroemadapter_0000_0000_0008 {
EVENTACTIONTYPE EventdActionType;
EVENTACTIONCONTEXTTYPE EventActionContextType;
union {
float Confidence;
EVENTACTIONSCALE Scale;
HRESULT ErrorCode;
};
} EVENTACTION;
Members
EventdActionType
Actions to take on a detection. This is a value from the EventActionType enumeration.
EventActionContextType
The types of context associated with an action. This is a value from the EventActionContextType enumeration.
Confidence
The confidence level is a number between 0.0 and 1.0 that represents how confident the algorithm is that the keyword was detected.
Scale
The scale as defined in the EVENTACTIONSCALE enumeration. The scale defines the quality associated with a specific detection can be used for telemetry when no confidence is available or confidence is confusing to report.
ErrorCode
An HRESULT error code from ParseDetectionResults.
Remarks
This structure is the part of the Event Detector OEM interface to be used for hardware keyword spotters. For more information, see Voice Activation.
Requirements
Requirement | Value |
---|---|
Header | eventdetectoroemadapter.h |