Skip to content

Latest commit

 

History

History
89 lines (64 loc) · 2.82 KB

nf-eventdetectoroemadapter-ieventdetectoroemadapter-computeandaddusermodeldata.md

File metadata and controls

89 lines (64 loc) · 2.82 KB
UID title description tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.lib req.dll req.irql req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library targetos ms.custom f1_keywords topic_type api_type api_location api_name
NF:eventdetectoroemadapter.IEventDetectorOemAdapter.ComputeAndAddUserModelData
IEventDetectorOemAdapter::ComputeAndAddUserModelData
Adds the user specific model data to an existing model data blob.
audio
02/25/2019
IEventDetectorOemAdapter::ComputeAndAddUserModelData
IEventDetectorOemAdapter::ComputeAndAddUserModelData, ComputeAndAddUserModelData, IEventDetectorOemAdapter.ComputeAndAddUserModelData, IEventDetectorOemAdapter::ComputeAndAddUserModelData, IEventDetectorOemAdapter.ComputeAndAddUserModelData
eventdetectoroemadapter.h
eventdetectoroemadapter.idl
Windows
19H1
IEventDetectorOemAdapter::ComputeAndAddUserModelData
eventdetectoroemadapter/IEventDetectorOemAdapter::ComputeAndAddUserModelData
apiref
COM
eventdetectoroemadapter.h
IEventDetectorOemAdapter::ComputeAndAddUserModelData

IEventDetectorOemAdapter::ComputeAndAddUserModelData

-description

Adds the user specific model data to an existing model data blob.

-parameters

-param ModelData

[In] - Pointer to IStream bound to model data, updated by this call.

-param EventSelector

[In] - The DETECTIONEVENTELECTOR that uniquely identifies this model.

-param EventEndBytePos

[In] - A pointer to an array byte positions of the end of the audio event in the corresponding UserRecording. A value of -1 indicates the position was unavailable.

-param UserRecordings

[In] - Pointer to an array of pointers to the previously verified recordings of the user.

Note that non-standard use of cbSize in WAVEFORMATEX - it is the size of the following PCM data for the user recording.

-param NumUserRecordings

[In] - Number of recordings.

-returns

This method returns HRESULT. It returns S_OK if the function exit successfully. Otherwise it returns:

  • E_POINTER- UserModelData pointer is null.
  • E_INVALIDARG - the DETECTIONEVENTELECTOR contains an invalid id.
  • HRESULT_FROM_WIN32(ERROR_GEN_FAILURE) = unable to complete the processing.

-remarks

This function is the part of the Event Detector OEM interface to be used for hardware keyword spotters. For more information, see Voice Activation.

-see-also