Package net.idrnd.voicesdk.verify
Class VoiceTemplateMatcher
java.lang.Object
net.idrnd.voicesdk.common.VoiceSdkNativePeer
net.idrnd.voicesdk.verify.VoiceTemplateMatcher
- All Implemented Interfaces:
AutoCloseable
Provides capabilities for creating and comparing
VoiceTemplate.
This class serves as gateway to native Voice SDK implementation and allocates resources on native heap.
To release the allocated memory, AutoCloseable.close() method should be invoked when the instance is no longer needed.
Any method that delegates to native call may throw VoiceSdkEngineException
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns ID of the init data, which was used to create the matchermatchVoiceTemplates(VoiceTemplate template1, VoiceTemplate template2) Matches 2 templates to each other.Methods inherited from class net.idrnd.voicesdk.common.VoiceSdkNativePeer
close, equals, hashCode
-
Constructor Details
-
VoiceTemplateMatcher
Sole constructor. Initializes the Engine object and allocates the native resources.- Parameters:
initDataPath- full path to the directory with SDK data- Throws:
VoiceSdkEngineException- wraps native exceptions
-
-
Method Details
-
matchVoiceTemplates
Matches 2 templates to each other. Order of templates is not important.- Parameters:
template1- First VoiceTemplatetemplate2- Second VoiceTemplate- Returns:
VerifyResult- Throws:
VoiceSdkEngineException- wraps native exceptions
-
getInitDataId
Returns ID of the init data, which was used to create the matcher- Returns:
- A string containing init data ID
-