Back to explorer
audio CLI & commands best source: official docs

sox

D

grade (soft)

10%

reliability

+0.21

overall

SoX is a command-line utility that performs audio synthesis, format conversion, mixing, and effects processing. Handing an agent this tool provides it with a scriptable interface to generate synthetic waveforms, concatenate segments, and apply digital signals processing via direct shell execution. The utility operates statefully on files and relies on text-only outputs to report audio metrics, duration, and pipeline errors.

Surfaces × lenses

hostile friendly
surface ↓
lens →
Coherence Economy Consistency Verifiability Safety
Disclosure
Interface
Loop
Recursion
Human

Click any cell for what was measured and why. A corner dot marks a cell filled by a hard instrument (checker, telemetry); undotted cells are judged by the rater ensemble. 47% of this matrix is hard-measured.

The experience

The tool's syntax enables programmatic sound design using fundamental synthesis generators like sine waves, white noise, and physical modeling plucks. An agent can successfully draft bash scripts to automate repetitive generation loops, such as iterating through arrays of musical notes and stitching individual audio frames together. Standard arguments like trim, fade, and the mix flag -m provide predictable mechanisms for sequential layout and vertical layering. When executing simpler, discrete transformations, the syntax performs adequately because parameter changes directly map to physical audio attributes.

The major limitation in the agent's workflow is the lack of direct biological feedback. Because the agent operations run in a headless CLI environment, it cannot audit the acoustic quality of the generated wave files. The agent must rely on metadata parsers such as soxi -D for tracking file duration or sox stat for inspecting peak amplitude to verify signal presence. This indirect verification is poor. It creates a disconnect where physical artifacts may be absent, empty, or distorted, yet the agent continues to construct a narrative of successful generation without physical confirmation.

The tool's command-line interface acts as a strict compiler with highly sensitive syntax rules. Combining signals via mixing or concatenation requires strict adherence to matching audio sample rates, bit depths, and channel configurations. Any discrepancy triggers immediate bash exceptions. For example, mixing mono noise with stereo sine waves results in CLI execution failures. Rather than recovering gracefully, the agent often struggles to align channel properties across multi-step shell scripts. This mismatch frequently causes compound loops that fail to produce any playable files in the destination path.

Reproducibility of programmatic audio generation via SoX is poor. Because the command sequence depends heavily on OS-level temporary directories, file system states, and process lifecycles, runs can fail unpredictably with zero file outputs. An agent during multi-turn sessions often loops without verifying folder paths, writing code that writes and compiles but ultimately fails to drop the synthesized artifact into the active working directory. This lack of robust state tracking causes the agent's summary of the workspace to contradict the actual physical directory contents, leading to false completion reports.

Fit

SoX is a good fit for agents performing deterministic, batch-oriented audio processing tasks where concrete input/output rules apply, such as downsampling, format transcoding, or generating basic test signals. In these scenarios, the input files are well-defined, and the expected outputs can be programmatically verified against rigid metadata filters.

It is a poor fit for agents tasked with creative sound design, complex arrangement, or subjective audio compositions that require real-time feedback loops. Without acoustic loops or human-in-the-loop checkpoints, the agent cannot adjust aesthetic traits like reverb density or frequency equalization, causing synthetic output that easily breaks or drifts into complete silence.

Notes

The following diagram illustrates the agent's iterative workflow when synthesizing and verifying audio files using SoX command strings.

Validation

Convergent check. Where a hard instrument and the independent rater panel measure the same cell, they agree on 5 of 14 cross-checked cells (72%). Two independent methods landing on the same number is our accuracy signal — not just the raters agreeing with each other.

Cell where they disagreeInstrumentRaterΔ
disclosure.verifiability-0.40+0.751.15
recursion.economy+0.55-0.501.05
recursion.coherence+0.50-0.400.90
loop.verifiability+0.20-0.700.90
interface.coherence+0.50-0.300.80
interface.verifiability+0.20-0.600.80
loop.economy+0.14-0.500.64
human.verifiability-0.20-0.800.60
loop.safety+0.70+0.200.50

Models & runs

2026-07-07
ModelHarnessRunsSolvedTurns
glm-5.2 PI2518/259

Each path is one run through the shared semantic space; nodes are turns (red = an errored turn). Hover a model — here or in the graph — to isolate its runs.

How this was measured

reference agent
pi:z-ai/glm-5.2
trials
25 (n=5/tier)
methodology
v0.1 3e74a3c6
cost
$0.8145
hard-measured cells
47%
teaching source
sox (official docs) (official-docs)

Same brief, same reference agent, and the same trial count for every tool in a category — a difference in the numbers is attributable to the tool (and its teaching source), not the setup. Profiles carry the methodology hash; results under different hashes are not compared.