|
Call Center SDK
1.12.0
|
Class for estimating person attributes by their voice (age and gender) More...
#include <voicesdk/attributes/attributes.h>
Public Types | |
| using | Ptr = std::shared_ptr< AttributesEstimator > |
Public Member Functions | |
| virtual Attributes | Estimate (const uint8_t *bytes, size_t bytes_num, size_t sample_rate)=0 |
| virtual Attributes | Estimate (const int16_t *pcm16_samples, size_t samples_num, size_t sample_rate)=0 |
| virtual Attributes | Estimate (const float *float_samples, size_t samples_num, size_t sample_rate)=0 |
| virtual Attributes | Estimate (const std::string &audio_file)=0 |
Static Public Member Functions | |
| static AttributesEstimator::Ptr | Create (const std::string &init_path) |
| Creates AttributesEstimator instance. More... | |
Class for estimating person attributes by their voice (age and gender)
|
static |
Creates AttributesEstimator instance.
| init_path | path to initialization data directory |
| std::runtime_error | if runtime error occurred |
| voicesdk::LicenseException | if license error occurred |
|
pure virtual |
Estimates person attributes from the given float (in [-1; 1] range) audio samples
| float_samples | input audio as normalized float samples array |
| samples_num | number of samples |
| sample_rate | input audio sample rate |
| std::runtime_error | if runtime error occurred |
| voicesdk::LicenseException | if license error occurred |
|
pure virtual |
Estimates person attributes from the given PCM16 audio samples
| pcm16_samples | input audio as PCM16 samples array |
| samples_num | number of samples |
| sample_rate | input audio sample rate |
| std::runtime_error | if runtime error occurred |
| voicesdk::LicenseException | if license error occurred |
|
pure virtual |
Estimates person attributes from the given audio file
| audio_file | path to audio file |
| std::runtime_error | if runtime error occurred |
| voicesdk::LicenseException | if license error occurred |
|
pure virtual |
Estimates person attributes from the given byte representation of PCM16 audio samples
| bytes | input audio as little-endian PCM16 byte array |
| bytes_num | number of bytes |
| sample_rate | input audio sample rate |
| std::runtime_error | if runtime error occurred |
| voicesdk::LicenseException | if license error occurred |