Class VoiceTemplateMatcher

java.lang.Object
net.idrnd.voicesdk.common.VoiceSdkNativePeer
net.idrnd.voicesdk.verify.VoiceTemplateMatcher
All Implemented Interfaces:
AutoCloseable

public class VoiceTemplateMatcher extends VoiceSdkNativePeer
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 Details

    • VoiceTemplateMatcher

      public VoiceTemplateMatcher(String initDataPath)
      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

      public VerifyResult matchVoiceTemplates(VoiceTemplate template1, VoiceTemplate template2)
      Matches 2 templates to each other. Order of templates is not important.
      Parameters:
      template1 - First VoiceTemplate
      template2 - Second VoiceTemplate
      Returns:
      VerifyResult
      Throws:
      VoiceSdkEngineException - wraps native exceptions
    • getInitDataId

      public String getInitDataId()
      Returns ID of the init data, which was used to create the matcher
      Returns:
      A string containing init data ID