History

new script

robs committed 17 years ago

Commit d72c48e1 parent bbc55031 file · +26 −0Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/voice-cleanup.sh+26−0
@@ -0,0 +1,26 @@
1+#!/bin/sh
2+
3+# This script, as used at http://language101.com, shows using several
4+# effects in combination to normalise and trim voice recordings that
5+# may have been recorded using different microphones, with differing
6+# background noise etc.
7+
8+SOX=../src/sox
9+
10+if [ $# -lt 2 ]; then
11+ echo "Usage: $0 infile outfile"
12+ exit 1
13+fi
14+
15+$SOX "$1" "$2" \
16+ remix - \
17+ highpass 100 \
18+ norm \
19+ compand 0.05,0.2 6:-54,-90,-36,-36,-24,-24,0,-12 0 -90 0.1 \
20+ vad -T 0.6 -p 0.2 -t 5 \
21+ fade 0.1 \
22+ reverse \
23+ vad -T 0.6 -p 0.2 -t 5 \
24+ fade 0.1 \
25+ reverse \
26+ norm -0.5

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t