Call Center SDK  1.11.3
Public Types | Public Member Functions | Static Public Member Functions | List of all members
voicesdk::VoiceTemplateMatcher Class Referenceabstract

Class for matching voice templates one-to-one. More...

#include <voicesdk/verify/verify.h>

Public Types

using Ptr = std::shared_ptr< VoiceTemplateMatcher >
 

Public Member Functions

virtual VerifyResult matchVoiceTemplates (const VoiceTemplate::Ptr &template1, const VoiceTemplate::Ptr &template2) const =0
 Matches two voice templates one-to-one. More...
 
virtual const std::string & getInitDataId () const =0
 Returns ID of the init data, which was used to create the matcher. More...
 

Static Public Member Functions

static Ptr create (const std::string &initPath)
 Factory method. More...
 

Detailed Description

Class for matching voice templates one-to-one.

Member Function Documentation

◆ create()

static Ptr voicesdk::VoiceTemplateMatcher::create ( const std::string &  initPath)
static

Factory method.

Parameters
initPathPath to the init data folder
Returns
Created VoiceTemplateMatcher instance
Exceptions
std::runtime_errorif runtime error occurred
voicesdk::LicenseExceptionif license error occurred

◆ getInitDataId()

virtual const std::string& voicesdk::VoiceTemplateMatcher::getInitDataId ( ) const
pure virtual

Returns ID of the init data, which was used to create the matcher.

Returns
A string containing init data ID

◆ matchVoiceTemplates()

virtual VerifyResult voicesdk::VoiceTemplateMatcher::matchVoiceTemplates ( const VoiceTemplate::Ptr &  template1,
const VoiceTemplate::Ptr &  template2 
) const
pure virtual

Matches two voice templates one-to-one.

Parameters
template1Voice template #1
template2Voice template #2
Returns
Voice verification result
Exceptions
std::runtime_errorif runtime error occurred
voicesdk::LicenseExceptionif license error occurred
Note
Both templates should have the same init data ID as the matcher instance