public class IdentificationEngine extends VoiceSdkNativePeer
AutoCloseable.close()
method should be invoked when the instance is no longer needed.
Any method that delegates to native call may throw VoiceSdkEngineException
nativeId
Constructor and Description |
---|
IdentificationEngine(java.lang.String initPath)
Initializes the engine, allocating native memory.
|
Modifier and Type | Method and Description |
---|---|
IdentificationList |
createIdentificationList(VoiceTemplate[] voiceTemplates)
Creates a list for identification from given voice templates
|
void |
enrichIdentificationList(IdentificationList identificationList,
VoiceTemplate[] voiceTemplates)
Enriches identification list with given voice templates
|
IdentificationResult |
identify(VoiceTemplate voiceTemplate,
IdentificationList identificationList) |
IdentificationResult |
identify(VoiceTemplate voiceTemplate,
IdentificationList identificationList,
float acceptanceLevel)
Performs an identification of given voice template using given identification list
|
IdentificationResult |
identify1(VoiceTemplate voiceTemplate,
IdentificationList identificationList,
float acceptanceLevel) |
IdentificationResult |
identify2(VoiceTemplate voiceTemplate,
IdentificationList identificationList) |
protected static long |
init(java.lang.String initPath) |
protected void |
release()
This method should release resources on native layer (indirectly using nativeId)
|
close, equals, finalize, hashCode
public IdentificationEngine(java.lang.String initPath)
initPath
- path to init dataVoiceSdkEngineException
- wraps native exceptionspublic IdentificationList createIdentificationList(VoiceTemplate[] voiceTemplates)
voiceTemplates
- array of voice templates which will be used for identification
(each template should be created with M_TI_X_2 verify method using 8k init data)public IdentificationResult identify(VoiceTemplate voiceTemplate, IdentificationList identificationList, float acceptanceLevel)
voiceTemplate
- speakers to identify voice template (template should be created with M_TI_X_2 verify
method using 8k init data)identificationList
- identification list to search speaker inacceptanceLevel
- parameter that could be used for finer identification threshold adjustment.
The greater this parameter, the smaller amount of templates from the identification list might be
considered as similar to the passed template.public IdentificationResult identify(VoiceTemplate voiceTemplate, IdentificationList identificationList)
public void enrichIdentificationList(IdentificationList identificationList, VoiceTemplate[] voiceTemplates)
identificationList
- identification list that will be enrichedvoiceTemplates
- array of voice templates which will be used for identification list enrichment
(each template should be created with M_TI_X_2 verify method using 8k init data)protected static long init(java.lang.String initPath)
public IdentificationResult identify1(VoiceTemplate voiceTemplate, IdentificationList identificationList, float acceptanceLevel)
public IdentificationResult identify2(VoiceTemplate voiceTemplate, IdentificationList identificationList)
protected void release()
VoiceSdkNativePeer
release
in class VoiceSdkNativePeer