8 #include <voicesdk/core/config.h>
17 typedef enum VoiceSdkGender { GENDER_MALE = 0, GENDER_FEMALE = 1 } VoiceSdkGender;
23 typedef enum VoiceSdkPhoneCallParticipant {
24 PHONE_CALL_PARTICIPANT_OPERATOR = 0,
25 PHONE_CALL_PARTICIPANT_CUSTOMER = 1,
26 PHONE_CALL_PARTICIPANT_OTHER = 2,
27 PHONE_CALL_PARTICIPANT_UNDEFINED = 3
28 } VoiceSdkPhoneCallParticipant;
58 typedef struct VoiceSdkAttributesEstimator VoiceSdkAttributesEstimator;
67 VoiceSdkAttributesEstimator* VoiceSdkAttributesEstimatorCreate(
const char* init_path,
char** error_msg);
74 void VoiceSdkAttributesEstimatorRelease(VoiceSdkAttributesEstimator* estimator);
87 bool VoiceSdkAttributesEstimatorEstimateWavFile(
const VoiceSdkAttributesEstimator* estimator,
const char* wav_path,
100 bool VoiceSdkAttributesEstimatorEstimateAudioFile(
const VoiceSdkAttributesEstimator* estimator,
const char* audio_path,
116 bool VoiceSdkAttributesEstimatorEstimateFloatSamples(
const VoiceSdkAttributesEstimator* estimator,
117 const float* float_samples,
size_t num_samples,
size_t sample_rate,
132 bool VoiceSdkAttributesEstimatorEstimatePcm16Samples(
const VoiceSdkAttributesEstimator* estimator,
133 const int16_t* samples,
size_t num_samples,
size_t sample_rate,
148 bool VoiceSdkAttributesEstimatorEstimatePcm16Bytes(
const VoiceSdkAttributesEstimator* estimator,
const uint8_t* bytes,
Structure representing estimated person attributes.
Definition: attributes_c_api.h:33
VoiceSdkGender gender
Estimated gender.
Definition: attributes_c_api.h:44
float gender_score
Raw gender score (the bigger score corresponding to male and the smaller score corresponding to femal...
Definition: attributes_c_api.h:39
VoiceSdkPhoneCallParticipant phone_call_participant
Estimated phone call participant class. Makes sense only for single speaker phone call recordings.
Definition: attributes_c_api.h:55
size_t age
Estimated age in years.
Definition: attributes_c_api.h:49