The C SDK exposes the ai-coustics real-time engine (AirTen) and Quail models via a stable C ABI.

Requirements

  • SDK license key (set AIC_SDK_LICENSE)
  • Platform libraries (dynamic or static) and headers

Setup

1

Download binaries and headers

Get the SDK from the releases and add include and lib paths to your build system.

C SDK README

Binaries, linking, and examples

C Reference

Full function and type documentation
2

Initialize and process audio

#include "aic.h"

int main() {
  const char* license = getenv("AIC_SDK_LICENSE");
  struct AicModel* model = NULL;

  // Create a 48 kHz Quail-S model
  aic_model_create(&model, AIC_MODEL_TYPE_QUAIL_S48, license);

  // Initialize for 48 kHz, stereo, 10 ms frames (480 samples)
  aic_model_initialize(model, 48000, 2, 480);

  // Set enhancement intensity
  aic_model_set_parameter(model, AIC_PARAMETER_ENHANCEMENT_LEVEL, 0.8f);

  // Process interleaved frames
  float* frame = calloc(480 * 2, sizeof(float));
  aic_model_process_interleaved(model, frame, 2, 480);

  free(frame);
  aic_model_destroy(model);
  return 0;
}