Quick start
trail mix requires Rust 1.85 or newer. Run the CLI from the repository root.
cargo run -p trailmix-cli -- song.mp3
The CLI supports MP3, FLAC, AIFF, WAV, AAC-in-MP4, and ALAC-in-MP4 and prints versioned analysis results as JSON. CI tests Linux, macOS, and Windows.
trailmix_codecs::analyze_path() accepts an audio file and handles decoding,
mono PCM prep, and analysis.
let analysis = trailmix_codecs::analyze_path(
"song.mp3",
trailmix::AnalysisConfig::default(),
)?;
let json = serde_json::to_string(&analysis)?;
When the application already has mono PCM, call the core API directly.
let analysis = trailmix::analyze(audio, trailmix::AnalysisConfig::default());