public class VoiceTemplateMatcher extends VoiceSdkNativePeer
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
VoiceTemplate
nativeId
Constructor and Description |
---|
VoiceTemplateMatcher(java.lang.String initDataPath)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInitDataId()
Returns ID of the init data, which was used to create the matcher
|
protected static long |
init(java.lang.String initDataPath) |
VerifyResult |
matchVoiceTemplates(VoiceTemplate template1,
VoiceTemplate template2)
Matches 2 templates to each other.
|
protected void |
release()
This method should release resources on native layer (indirectly using nativeId)
|
close, equals, finalize, hashCode
public VoiceTemplateMatcher(java.lang.String initDataPath)
initDataPath
- full path to the directory with SDK dataVoiceSdkEngineException
- wraps native exceptionspublic VerifyResult matchVoiceTemplates(VoiceTemplate template1, VoiceTemplate template2)
template1
- First VoiceTemplatetemplate2
- Second VoiceTemplateVerifyResult
VoiceSdkEngineException
- wraps native exceptionspublic java.lang.String getInitDataId()
protected static long init(java.lang.String initDataPath)
protected void release()
VoiceSdkNativePeer
release
in class VoiceSdkNativePeer