Skip to content

Instantly share code, notes, and snippets.

@redraw
Created September 12, 2025 03:37
Show Gist options
  • Save redraw/e852e593f07d3411a3ade957dbed88bb to your computer and use it in GitHub Desktop.
Save redraw/e852e593f07d3411a3ade957dbed88bb to your computer and use it in GitHub Desktop.
simil telefono
#!/usr/bin/env bash
set -euo pipefail
shopt -s nullglob
for f in *.wav; do
echo "[*] $f"
sox --clobber "$f" -C 48 -r 8000 -c 1 "${f%.wav}.mp3" \
highpass 300 lowpass 3400 \
compand 0.02,0.20 6:-80,-60,-40,-30,-20 -6 -90 0.2 \
gain -n -1 dither -s
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment