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

Result structure returned from AntispoofEngine::isSpoof functions. More...

#include <voicesdk/antispoof2/antispoof.h>

Public Member Functions

 AntispoofResult (float score, float score_Replay, float score_TTS, float score_VC, std::string unsuitableInputMessage="")
 
 AntispoofResult (const AntispoofResult &other)=default
 
bool operator== (const AntispoofResult &other) const
 
bool isValid ()
 

Public Attributes

float score = 0.0
 
float score_Replay = 0.0
 
float score_TTS = 0.0
 
float score_VC = 0.0
 
std::string unsuitableInputMessage
 

Friends

std::ostream & operator<< (std::ostream &os, const AntispoofResult &obj)
 

Detailed Description

Result structure returned from AntispoofEngine::isSpoof functions.

Member Data Documentation

◆ score

float voicesdk::AntispoofResult::score = 0.0

Human score

◆ score_Replay

float voicesdk::AntispoofResult::score_Replay = 0.0

Replay attack score (reserved, always zero)

◆ score_TTS

float voicesdk::AntispoofResult::score_TTS = 0.0

Text-to-speech attack score (reserved, always zero)

◆ score_VC

float voicesdk::AntispoofResult::score_VC = 0.0

Voice conversion attack score (reserved, always zero)

◆ unsuitableInputMessage

std::string voicesdk::AntispoofResult::unsuitableInputMessage

Message that explains the reason for audio input to be unsuitable for spoof check