114 size_t num_samples,
size_t sample_rate,
135 size_t num_samples,
size_t sample_rate,
float probability
Liveness probability from 0 to 1.
Definition: liveness_c_api.h:38
VoiceSdkErrorCode
Enumeration of the error codes which can be returned from the VoiceSDK API.
Definition: core_c_api.h:18
struct VoiceSdkLivenessEngine VoiceSdkLivenessEngine
Voice liveness check structure.
Definition: liveness_c_api.h:14
VOICE_SDK_API bool VoiceSdkLivenessEngineCheckLivenessPcm16Samples(const VoiceSdkLivenessEngine *engine, const int16_t *pcm16_samples, size_t num_samples, size_t sample_rate, VoiceSdkLivenessResult *result, VoiceSdkErrorCode *error_code, char **error_msg)
Checks liveness from the given PCM16 audio samples.
VOICE_SDK_API void VoiceSdkLivenessEngineRelease(VoiceSdkLivenessEngine *engine)
Releases all memory allocated for this VoiceSdkLivenessEngine instance.
Voice liveness check result.
Definition: liveness_c_api.h:27
VOICE_SDK_API VoiceSdkLivenessEngine * VoiceSdkLivenessEngineCreate(const char *init_path, VoiceSdkErrorCode *error_code, char **error_msg)
Creates VoiceSdkLivenessEngine.
Definition: liveness_c_api.h:21
VoiceSdkLivenessResultValidationStatusCode
Status code of validation preceding liveness check.
Definition: liveness_c_api.h:19
float score
Raw liveness score.
Definition: liveness_c_api.h:32
VOICE_SDK_API bool VoiceSdkLivenessEngineCheckLivenessAudioFile(const VoiceSdkLivenessEngine *engine, const char *audio_path, VoiceSdkLivenessResult *result, VoiceSdkErrorCode *error_code, char **error_msg)
Checks liveness from the given audio file.
#define VOICE_SDK_API
Definition: config.h:21
VOICE_SDK_API bool VoiceSdkLivenessEngineCheckLivenessFloatSamples(const VoiceSdkLivenessEngine *engine, const float *float_samples, size_t num_samples, size_t sample_rate, VoiceSdkLivenessResult *result, VoiceSdkErrorCode *error_code, char **error_msg)
Checks liveness from the given float audio samples.
Definition: liveness_c_api.h:20
VOICE_SDK_API bool VoiceSdkLivenessEngineCheckLivenessBytes(const VoiceSdkLivenessEngine *engine, const uint8_t *bytes, size_t num_bytes, size_t sample_rate, VoiceSdkLivenessResult *result, VoiceSdkErrorCode *error_code, char **error_msg)
Checks liveness from the given byte representation of PCM16 audio samples.
VoiceSdkLivenessResultValidationStatusCode status_code
Quality check status code. If not equal to kOk, liveness check wasn't performed and score...
Definition: liveness_c_api.h:45
struct VoiceSdkLivenessResult VoiceSdkLivenessResult
Voice liveness check result.