forked from sox_ng/sox_ng
This is the hard fork, allowing old sox and sox_ng to coexist on the same system. Any distro wishing to switch to sox_ng just needs to make symlinks from the old file names to the new. This also removes the Debian-specific files rather than trying to update them, as Debian uses its own version of them.
26 lines
566 B
Bash
Executable file
26 lines
566 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# This script, as used at http://language101.com, shows using several
|
|
# effects in combination to normalise and trim voice recordings that
|
|
# may have been recorded using different microphones, with differing
|
|
# background noise etc.
|
|
|
|
SOX=../src/sox_ng
|
|
|
|
if [ $# -lt 2 ]; then
|
|
echo "Usage: $0 infile outfile"
|
|
exit 1
|
|
fi
|
|
|
|
$SOX "$1" "$2" \
|
|
remix - \
|
|
highpass 100 \
|
|
norm \
|
|
compand 0.05,0.2 6:-54,-90,-36,-36,-24,-24,0,-12 0 -90 0.1 \
|
|
vad -T 0.6 -p 0.2 -t 5 \
|
|
fade 0.1 \
|
|
reverse \
|
|
vad -T 0.6 -p 0.2 -t 5 \
|
|
fade 0.1 \
|
|
reverse \
|
|
norm -0.5
|