
Decode and capture
Load WAV, FLAC, or MP3, capture a live device, or read the audio track from a video into an explicit Float32 contract.

Decode, capture, process, analyze, play, and encode audio through the same matrix runtime that powers OA machine learning.

Load WAV, FLAC, or MP3, capture a live device, or read the audio track from a video into an explicit Float32 contract.

Mix, normalize, resample, saturate, and filter with Biquad processing in parallel blocks and SOS filters with 1 to 64 sections on the GPU.

STFT, mel spectrograms, and MFCCs produce ordinary Matrix values ready for the Ml stack.

Play, seek, loop, or encode through the same stream contract used by Vision for synchronized media.



Waveforms, spectra, and mel features are real OA values rendered for inspection. The same explicit data contract can move from ingest through GPU processing to a model or a human readable diagnostic without an export detour.
Decode, transform, synchronize, and deliver without breaking the data model between media, compute, and machine learning.
A condensed view of the SDK pipeline: decode, collapse to mono, normalize, fade, reverberate, and save. Rust and Python follow the same sequence through the native OA runtime.
1use oa::{Path, audio};23let path = Path::asset_rel("audio/oaNarration.wav");4let source = audio::decode_file(&path)?;5let mono = audio::to_mono(&source)?;6let normalized = audio::normalize(&mono, audio::NormalizeAudioConfig {7 target_db: -3.0, ..Default::default()8})?;9let faded = audio::fade(&normalized, 2400, 2400)?;10let room = audio::reverb(&faded, 1.5, 0.4)?;11audio::save_wav_f32(&Path::var_rel("audio/room.wav"), &room)?;
Follow the same runtime and semantic values into another module.