Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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 |
---|---|
|
The function exited successfully. |
|
User keyword training is not supported by the device. |
|
Either the KeywordId or LangId parameters are invalid. |
|
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 |