Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
npm install @ai-coustics/aic-sdk
const { Model, Processor } = require("@ai-coustics/aic-sdk"); // Get your license key from the environment variable const licenseKey = process.env.AIC_SDK_LICENSE; // Download and load a model (or download manually at https://artifacts.ai-coustics.io/) const modelPath = Model.download("quail-vf-2.1-l-16khz", "./models"); const model = Model.fromFile(modelPath); // Get optimal configuration const sampleRate = model.getOptimalSampleRate(); const numFrames = model.getOptimalNumFrames(sampleRate); const numChannels = 2; // Create and initialize processor const processor = new Processor(model, licenseKey); processor.initialize(sampleRate, numChannels, numFrames, false); // Process audio (Float32Array, interleaved: [L0, R0, L1, R1, ...]) const audioBuffer = new Float32Array(numChannels * numFrames); processor.processInterleaved(audioBuffer);
Was this page helpful?
Suggestions
Contact support