32constexpr static const uint32_t AIC_PASS = 0;
37constexpr static const uint32_t AIC_FAIL = 1;
43constexpr static const uint32_t AIC_FAIL_NULL_POINTER = 2;
147 float *
const *buffer,
171 float enhancement_strength);
181 float *enhancement_strength);
228 size_t *sample_rate);
uint32_t aic_reset(AicModel *model)
Processes a multi-channel buffer of audio data using the AicModel.
uint32_t aic_init(AicModel *model, size_t num_channels, size_t sample_rate, size_t num_frames)
Initializes the audio processing settings for the AicModel.
AicModel * aic_new_model_m()
Creates a new AicModel, using the machine learning model ModelM.
uint32_t aic_get_enhancement_strength(AicModel *model, float *enhancement_strength)
Gets the current enhancement strength for the AicModel.
uint32_t aic_get_optimal_num_frames(AicModel *model, size_t *num_frames)
Gets the optimal number of frames for the AicModel. This is the native number of frames of the model,...
AicModel * aic_new_model_z()
Creates a new AicModel, using the machine learning model ModelZ.
uint32_t aic_log_init(LogCallback log_callback)
Initializes the SDK logger.
AicModel * aic_new_model_l()
Creates a new AicModel, using the machine learning model ModelL.
uint32_t aic_get_latency(AicModel *model, size_t *latency)
Gets the current latency of the full process in samples.
uint32_t aic_set_enhancement_strength(AicModel *model, float enhancement_strength)
Sets the enhancement strength for the AicModel.
uint32_t aic_process_deinterleaved(AicModel *model, float *const *buffer, size_t num_channels, size_t num_frames)
Processes a multi-channel buffer of audio data using the AicModel.
uint32_t aic_get_voice_gain(AicModel *model, float *voice_gain)
Gets the current voice gain parameter of the AicModel. This is the gain that is added to the extracte...
LogLevel
Definition aic.h:48
uint32_t aic_set_voice_gain(AicModel *model, float voice_gain)
Sets the voice gain parameter of the AicModel. This is the gain that is added to the extracted voice ...
uint32_t aic_process_interleaved(AicModel *model, float *buffer, size_t num_channels, size_t num_frames)
Processes a buffer of interleaved audio data using the AicModel.
void(*)(const char *, LogLevel) LogCallback
Definition aic.h:65
AicModel * aic_new_model_s()
Creates a new AicModel, using the machine learning model ModelS.
void aic_free(AicModel *model)
Frees the memory used by the AicModel.
uint32_t aic_get_optimal_sample_rate(AicModel *model, size_t *sample_rate)
Gets the optimal sample rate for the AicModel. This is the native sample rate of the model,...