# SoX audio prep checklist (ToolBrivio) Pasteable gate: soxi the input, reverse-chain head/tail silence, compress long mid pauses with `-l` leave gap, land 16 kHz mono WAV, then FAIL the below-periods=1 and 10% traps once on a copy. Purpose: CLI prep before whisper.cpp or FFmpeg loudnorm. Not a loudness pass, not a caption draft, not a GUI noise-reduction bake-off. Test basis: ToolBrivio Guide dated 2026-10-30 (Debian 13, KVM guest, 8 CPUs; SoX v14.4.2, Debian sox/libsox3 14.4.2+git20190427-5+b3; FFmpeg 7.1.5). One 74.399729 s fixture we made: Piper TTS VO plus digital silence. **Not real quiet-room speech.** Durations: `/articles/sox-interview-audio-prep-review.html`. Source WAV: soxi -D / -r / -c / -b: Leave gap used (2.0 / 0.5 / other): 16 kHz mono confirmed (Y / N): Pitfall stubs checked (Y / N): PASS / FAIL / HOLD: ## 1. Confirm SoX version ```bash sox --version soxi -h | head -n 2 nproc ``` Lab: SoX v14.4.2; 8 CPUs. `soxi --version` printed a getopt warning on this build; cite `sox --version`. - [ ] Version written down - [ ] Core count noted ## 2. soxi the input ```bash soxi interview.wav soxi -D interview.wav soxi -r interview.wav soxi -c interview.wav soxi -b interview.wav stat -c '%s bytes' interview.wav ``` Lab: 74.399729 s, 48000 Hz, 1 channel, 16-bit, 7,142,452 B. - [ ] Duration, rate, channels, bits recorded - [ ] Working on a copy ## 3. Head+tail trim only ```bash sox interview.wav trim_ends.wav silence 1 0.1 1% reverse silence 1 0.1 1% reverse soxi -D trim_ends.wav ``` Lab: 64.161458 s (removed 10.238271 s). Mid gaps kept: 3.237646 / 4.212042 s (FFmpeg silencedetect on trim_ends). - [ ] Duration shorter than input - [ ] Mid pauses still present ## 4. Mid-pause compress, leave 2.0 ```bash sox interview.wav mid_2s.wav silence -l 1 0.1 1% -1 2.0 1% soxi -D mid_2s.wav ``` Lab: 58.092375 s (removed 16.307354 s from input). **2.0 is our leave value, not a standard.** Synth proof on hard digital silence: 14.000000 s -> 8.039417 s with leftover gaps 2.019854 s x2. TTS soft edges may not show a full leftover gap under a strict -50 dB detector; trust soxi -D and listen once. - [ ] Duration fell past trim_ends - [ ] Leave gap labeled as ours ## 5. Optional tighter leave 0.5 ```bash sox interview.wav mid_0.5s.wav silence -l 1 0.1 1% -1 0.5 1% soxi -D mid_0.5s.wav ``` Lab: 55.443208 s. **0.5 is ours.** HOLD/skip if 2.0 already fits. - [ ] Duration noted, or step skipped on purpose ## 6. Rate + channels to 16 kHz mono ```bash sox mid_2s.wav -r 16000 -c 1 -b 16 interview_16k_mono.wav rate 16k channels 1 soxi -r interview_16k_mono.wav soxi -c interview_16k_mono.wav soxi -D interview_16k_mono.wav ``` Lab: 16000 Hz, 1 channel, Duration 58.092375 s. Warnings: rate clipped 7 samples; dither clipped 5 samples. - [ ] 16000 Hz, 1 channel - [ ] Clip warnings noted if present ## 7. Pitfall: below-periods=1 stop ```bash sox interview.wav pitfall_stops.wav silence 1 0.1 1% 1 0.1 1% soxi -D pitfall_stops.wav ``` Lab FAIL: 0.371167 s. Do not ship. Prefer reverse head/tail or `-l` with negative below-periods. - [ ] Recognized on a copy - [ ] Prep path avoids this form ## 8. Pitfall: 10% vs 1% ```bash sox interview.wav pitfall_10pct.wav silence 1 0.1 10% reverse silence 1 0.1 10% reverse soxi -D pitfall_10pct.wav ``` Lab: 63.287208 s vs 1% 64.161458 s; delta 0.874250 s. Quiet-speech risk. We start at 1%. - [ ] Delta vs 1% noted before raising threshold ## 9. Batch a few takes ```bash mkdir -p batch for f in batch/take*.wav; do sox "$f" "batch/prep_$(basename "$f")" \ silence 1 0.1 1% reverse silence 1 0.1 1% reverse \ rate 16k channels 1 done for f in batch/prep_*.wav; do printf '%s ' "$f"; soxi -D "$f"; soxi -r "$f"; soxi -c "$f" done ``` Lab: prep D 14.635188 / 19.869250 / 19.913125 s; wall 0.063 s; all 16000/mono. - [ ] Each prep file 16000 / mono | Step | PASS | FAIL (our lab) | |------|------|----------------| | 3. Head+tail | Duration down; mids kept | Mids removed | | 4. Leave 2.0 | 58.092375 s | Emptied / speech chewed | | 6. 16 kHz mono | soxi -r 16000 -c 1 | Still 48000 | | 7. below-periods=1 | Recognized stub | Shipping 0.371167 s | | 8. 10% threshold | Delta noted | Default 10% on quiet speech | Untested: EBU loudnorm; Audacity NR; GPU; Windows / macOS builds; real quiet-room speech beyond TTS; MP3 quality deep dive. Sources (same archive set as the review): SoX man page; Digital Cardboard SoX of Silence; Stack Overflow 41273701 and 46254093; Super User 225386; hyaline.systems SoX guide; sox_ng issue #395. Evidence: `evidence/sox-interview-audio-prep/` (commands.log, NOTES, outputs). Companion review: `/articles/sox-interview-audio-prep-review.html`. Next: `/articles/whispercpp-first-draft-srt-checklist.html` and `/articles/ffmpeg-loudnorm-delivery-checklist.html`.