EVT_ACX_KEYWORDSPOTTER_ASSIGN_RESET callback function (acxelements.h)

The EVT_ACX_KEYWORDSPOTTER_ASSIGN_RESET callback resets the keyword spotter detector to an unarmed state with no pattern set.

Syntax

EVT_ACX_KEYWORDSPOTTER_ASSIGN_RESET EvtAcxKeywordspotterAssignReset;

NTSTATUS EvtAcxKeywordspotterAssignReset(
  ACXKEYWORDSPOTTER KeywordSpotter,
  GUID *EventId
)
{...}

Parameters

KeywordSpotter

An existing, initialized, ACXKEYWORDSPOTTER object. For more information about ACX objects, see Summary of ACX Objects. Also see the AcxKeywordSpotterCreate function.

EventId

A pointer to a GUID that represents the EventId.

Return value

Returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an appropriate error code. For more information, see Using NTSTATUS Values.

Remarks

For general information about keyword detection, see Voice Activation and Multiple Voice Assistant.

Example

Example usage is shown below.

EVT_ACX_KEYWORDSPOTTER_ASSIGN_RESET     CodecC_EvtAcxKeywordSpotterAssignReset;

NTSTATUS
NTAPI
CodecC_EvtAcxKeywordSpotterAssignReset(
    _In_    ACXKEYWORDSPOTTER   KeywordSpotter,
    _In_    GUID *              EventId
    )
{
    PAGED_CODE();
    PCODEC_KEYWORDSPOTTER_CONTEXT keywordSpotterCtx;
    CKeywordDetector *            keywordDetector = NULL;

    keywordSpotterCtx = GetCodecKeywordSpotterContext(KeywordSpotter);

    keywordDetector = (CKeywordDetector*)keywordSpotterCtx->KeywordDetector;

    return keywordDetector->ResetDetector(*EventId);
}

ACX requirements

Minimum ACX version: 1.0

For more information about ACX versions, see ACX version overview.

Requirements

Requirement Value
Header acxelements.h
IRQL PASSIVE_LEVEL

See also