VoiceTemplateMatcher

Superclass:
NSObject
Declared In:

Introduction

Class for matching voice templates.



Methods

-getInitDataId:

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

-initWithPath:error:

Creates VoiceTemplateMatcher instance.

-matchVoiceTemplates:template2:error:

Matches two voice templates one-to-one.


getInitDataId:


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

- (NSString* _Nullable)getInitDataId:(NSError* _Nullable* _Nullable)error; 
Parameters
error

pointer to NSError for error reporting

Return Value

A string containing init data ID.


initWithPath:error:


Creates VoiceTemplateMatcher instance.

- (instancetype _Nullable)initWithPath:(NSString* _Nonnull)path 
        error:(NSError* _Nullable* _Nullable)error; 
Parameters
path

path to the init data folder

error

pointer to NSError for error reporting


matchVoiceTemplates:template2:error:


Matches two voice templates one-to-one.

- (VerifyResult* _Nullable)matchVoiceTemplates:(VoiceTemplate* _Nonnull)template1 
        template2:(VoiceTemplate* _Nonnull)template2 error:(NSError* _Nullable* _Nullable)error; 
Parameters
template1

Voice template #1

template2

Voice template #2

error

pointer to NSError for error reporting

Return Value

Voice verification result.

Both templates should have the same init data ID as the matcher instance: