Skip to main content
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 <stdlib.h>
#include "aic.h"

int main() {
    // Load your license key
    const char* license = getenv("AIC_SDK_LICENSE");

    // Create a new model
    struct AicModel* model = NULL;
    aic_model_create(&model, AIC_MODEL_TYPE_QUAIL_S48, license);

    // Initialize with your audio settings
    aic_model_initialize(model, 48000, 2, 480);

    // Configure enhancement parameters
    aic_model_set_parameter(model, AIC_PARAMETER_ENHANCEMENT_LEVEL, 0.7f);

    // Process audio (interleaved version available as well)
    float* audio_buffer_left = (float*) calloc(480, sizeof(float));
    float* audio_buffer_right = (float*) calloc(480, sizeof(float));
    float* audio_buffer_planar[2] = {audio_buffer_left, audio_buffer_right};
    aic_model_process_planar(model, audio_buffer_planar, 2, 480);
    
    // Voice Activity Detection
    struct AicVad* vad = NULL;
    aic_vad_create(&vad, model);
    
    bool is_speech_detected = false;
    aic_vad_is_speech_detected(vad, &is_speech_detected);

    // Cleanup resources
    free(audio_buffer_left);
    free(audio_buffer_right);
    aic_model_destroy(model);
    aic_vad_destroy(vad);
    return 0;
}