SoX
$ sox Community Low RiskSoX (Sound eXchange) converts audio formats, adjusts sample rates and channels, trims silence, and measures signal statistics via sox and soxi. It runs deterministically without prompts, though inspection output (--i / stat) is plain text rather than JSON.
brew install sox Direct local audio resampling and header inspection with sox has zero API latency or payload transfer overhead.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Runs headlessly with clean exit codes and -n null output mode, but lacks --json output and sends stat metrics to stderr.
- Non-interactive pipeline with
--iinfo and-n statread-only modes - Plain-text stdout/stderr output with no
--jsonflag
Purely local file processing with no network or credentials; writes only to the specified output file, which will overwrite if an existing path is passed.
- Separate input and output positional arguments prevent accidental in-place mutation
Widely packaged via brew install sox, apt, dnf, and SourceForge Windows builds, though MP3/Opus codecs depend on system libraries.
- Available across macOS, Linux, and Windows
Fast, lightweight C utility for ASR preprocessing (-r 16000 -c 1), concatenation, and trimming without full ffmpeg overhead.
- One-line resampling, channel mixing, and silence trimming
Long-standing SourceForge open-source tool with very infrequent upstream releases.
- Mature codebase on SourceForge; distros carry maintenance patches
Detailed sox(1) man page and official documentation covering every effect and format flag.
- Comprehensive manual at sox.sourceforge.net
Security, Auth & Guardrails
None required; operates purely on local audio files.
100% free, offline, and open-source (GPL-2.0 / LGPL-2.1).
# SoX Agent Rules - Always write processed audio to a new output filename rather than reusing the input path. - Use `sox --i` or `sox <file> -n stat` for read-only inspection; note `stat` writes to stderr.
Agent-Ready Command Recipes
Safe Read-Only Queries
sox --i input.wav
Prints sample rate, channels, bit depth, duration, and encoding without modifying input.wav.
sox input.wav -n stat
Uses the -n null target and stat effect to report peak, RMS, and DC offset on stderr without writing files.
Controlled Writes & Previews
sox input.wav -r 16000 -c 1 -b 16 output_16k.wav
Writes a separate speech-ready 16 kHz mono PCM file without modifying the source input.wav.
Strengths for Agents
- + Fast single-command audio resampling (
-r 16000 -c 1) ideal for speech/ASR preprocessing. - + Read-only
--imetadata check and-n statanalysis never mutate source audio.
Caveats & Pitfalls
- ! No
--jsonoutput; agents must parse plain key-value text or stderr fromstat. - ! Passing an existing file as the output path overwrites it without confirmation.