Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

SoX

$ sox Community Low Risk
SoX · AI & Media · GPL-2.0-or-later / LGPL-2.1-or-later · macos / linux / windows

SoX (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.

FCRS-1.0 Score
78 /100
Good
Medium Confidence
Zero-Friction Install
brew install sox
CLI vs MCP Decision CLI Only

Direct local audio resampling and header inspection with sox has zero API latency or payload transfer overhead.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 17 / 25

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 --i info and -n stat read-only modes
  • Plain-text stdout/stderr output with no --json flag
Trust & Safety 21 / 25

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
Setup & Portability 13 / 15

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
Utility & Efficiency 13 / 15

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
Maintenance & Lineage 6 / 10

Long-standing SourceForge open-source tool with very infrequent upstream releases.

  • Mature codebase on SourceForge; distros carry maintenance patches
Docs & Verifiability 8 / 10

Detailed sox(1) man page and official documentation covering every effect and format flag.

  • Comprehensive manual at sox.sourceforge.net

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; operates purely on local audio files.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free, offline, and open-source (GPL-2.0 / LGPL-2.1).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Inspect audio stream metadata
sox --i input.wav

Prints sample rate, channels, bit depth, duration, and encoding without modifying input.wav.

Compute signal amplitude stats with null output
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

Resample audio to 16 kHz mono WAV
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 --i metadata check and -n stat analysis never mutate source audio.

Caveats & Pitfalls

  • ! No --json output; agents must parse plain key-value text or stderr from stat.
  • ! Passing an existing file as the output path overwrites it without confirmation.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI