IKeywordDetectorOemAdapter::ComputeAndAddUserModelData method (keyworddetectoroemadapter.h)

The ComputeAndAddUserModelData method is used by the training user experience to compute the user-specific information relative to the user-independent keyword. The DLL updates the ModelData parameter with the results.

Syntax

HRESULT ComputeAndAddUserModelData(
  [in] IStream         *ModelData,
  [in] KEYWORDSELECTOR KeywordSelector,
  [in] LONG            *KeywordEndBytePos,
  [in] IMFMediaBuffer  **UserRecordings,
  [in] ULONG           NumUserRecordings
);

Parameters

[in] ModelData

A pointer to the IStream object bound to model data. It is modified by this call.

[in] KeywordSelector

A KEYWORDSELECTOR struct that uniquely identifies this model.

[in] KeywordEndBytePos

Indicates the end of the keyword in the UserRecording.

[in] UserRecordings

A pointer to an array of pointers to the previously verified user recordings of the keyword.

[in] NumUserRecordings

The number of recordings.

Return value

This method can return one of these values.

Return value Description
S_OK
The function exited successfully.
E_NOTIMPL
User keyword training is not supported by the device.
E_INVALIDARG
Either the KeywordId or LangId parameters are invalid.
HRESULT_FROM_WIN32(ERROR_GEN_FAILURE)
The processing was unable to complete.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Target Platform Windows
Header keyworddetectoroemadapter.h

See also

IKeywordDetectorOemAdapter

KEYWORDSELECTOR