SDK examples require an
AIC_SDK_LICENSE environment variable. Get your license key from the ai-coustics Developer Platform. LiveKit examples can use LiveKit Cloud authentication instead.LiveKit
LiveKit Quickstart
Add ai-coustics speech enhancement to a LiveKit Python or Node.js voice agent.
Python
Basic Usage
Download a model from the CDN, load it, configure a processor, and enhance audio in a synchronous workflow.
Async Usage
Asynchronous version of the basic example using
async/await for model downloading and audio processing.File Enhancement
Enhance WAV files from disk, downmixing multi-channel input to mono, with progress reporting.
Voice Activity Detection
Run a dedicated VAD model, tune sensitivity and hold duration, and read speech decisions from the VAD context.
Audio Analysis
Score an audio file with the Tyto analysis model across five-second windows.
Benchmark
Benchmark real-time processing throughput by spawning parallel processing sessions.
Pipecat
Speech Enhancement (AICFilter)
Voice agent that enhances incoming audio with the AICFilter.
Voice Activity Detection
Voice agent using the standalone ai-coustics VAD analyzer.
Node.js
Basic Usage
Download a model, create a processor, and enhance audio samples with the Node.js SDK.
File Processing
Read a WAV file, enhance it with configurable model and enhancement level, and write the result to disk.
Voice Activity Detection
Run a dedicated VAD model and read speech decisions from the VAD context.
Audio Analysis
Buffer audio through a collector and score it with the Tyto analysis model.
Rust
Basic Usage
Download a model at runtime, configure a processor with enhancement parameters, and process audio.
Voice Activity Detection
Run a dedicated VAD model and read speech decisions from the VAD context.
Audio Analysis
Score an audio file with the Tyto analysis model.
Parallel Async
Process multiple streams concurrently with the async API.
Benchmark
Multi-threaded benchmark that measures real-time processing throughput across parallel sessions.
Build-Time Model Download
Download a model at build time and embed it directly into your binary using the
include_model! macro.C
Enhancement
Load a model from file, create a processor, and enhance mono audio using the C API.
Voice Activity Detection
Create an
AicVad from a dedicated VAD model and read speech decisions, with full error checking.Audio Analysis
Buffer audio through a collector and score it with the Tyto analysis model.
C++
Basic Usage
Load a model, configure a processor with enhancement and VAD settings, and process audio using the C++ API.