Call Center SDK  1.11.3
Public Member Functions | Public Attributes | Friends | List of all members
voicesdk::ident::IdentificationResult Struct Reference

Structure containing identification result. More...

#include <voicesdk/identification/identification.h>

Public Member Functions

std::vector< size_t > GetIndexesOfMatchedTemplates () const
 Returns indexes of templates stored (i.e. used for creation) identification list which are considered to belong to the speaker being identified. More...
 
bool IsMatched () const
 Check whether voice template was matched or not. More...
 

Public Attributes

std::vector< float > scores
 Contains similarity score for each template sorted in according to templates identification list was created with.
 
float threshold
 Similarity score threshold, supposed to be used to make a decision about if corresponding voice template in the identification list belongs to the same speaker as the passed one (is the score is greater than the threshold) More...
 

Friends

VOICE_SDK_API friend std::ostream & operator<< (std::ostream &os, const IdentificationResult &obj)
 

Detailed Description

Structure containing identification result.

Member Function Documentation

◆ GetIndexesOfMatchedTemplates()

std::vector<size_t> voicesdk::ident::IdentificationResult::GetIndexesOfMatchedTemplates ( ) const
inline

Returns indexes of templates stored (i.e. used for creation) identification list which are considered to belong to the speaker being identified.

Returns
Vector of indexes of matched templates from identification list

◆ IsMatched()

bool voicesdk::ident::IdentificationResult::IsMatched ( ) const
inline

Check whether voice template was matched or not.

Returns
true if template was matched, false otherwise

Member Data Documentation

◆ threshold

float voicesdk::ident::IdentificationResult::threshold

Similarity score threshold, supposed to be used to make a decision about if corresponding voice template in the identification list belongs to the same speaker as the passed one (is the score is greater than the threshold)

See also
getIndexesOfMatchedTemplates method for decision making logic