-
Notifications
You must be signed in to change notification settings - Fork 33
/
get_all_rirs.sh
executable file
·72 lines (62 loc) · 1.76 KB
/
get_all_rirs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
if [ "$1" == "" ]; then
echo "Usage: $0 <path to store the downloaded data>"
exit
fi
dest=$(echo $1 | sed 's:/*$::')
cleandir=true
export PATH=$(pwd):$PATH
if [ ! -d $dest/OPENAIR ]; then
echo "Downloading OpenAIR dataset..."
get_openair.sh $dest
echo "Download finished."
fi
if [ ! -d $dest/RWCP_REVERB_AACHEN ]; then
echo "Downloading RWCP, REVERB and Aachen datasets..."
get_rwcp_reverb_air.sh $dest
mv $dest/RIRS_NOISES $dest/RWCP_REVERB_AACHEN
if $cleandir; then
echo "Removing non-RIR files"
pushd $dest/RWCP_REVERB_AACHEN
rm -rf pointsource_noises simulated_rirs real_rirs_isotropic_noises/*noise*
popd
fi
echo "Download finished."
fi
if [ ! -d $dest/BUT_ReverbDB ]; then
echo "Downloading BUT Reverb Database..."
get_but.sh $dest
if $cleandir; then
echo "Removing non-RIR files"
find $dest/BUT_ReverbDB -type f -not -name '*IR*.wav' -delete # Delete non-RIR files
find $dest/BUT_ReverbDB -name '*v0[1-9].wav' -delete # Delete repeated recordings
fi
echo "Download finished."
fi
if [ ! -d $dest/MIT_Survey ]; then
echo "Downloading MIT Survey dataset..."
get_mit.sh $dest
echo "Download finished."
fi
if [ ! -d $dest/C4DM ]; then
echo "Downloading C4DM Survey dataset..."
get_c4dm.sh $dest
echo "Download finished."
fi
#TODO: MIRD dataset comes in .mat file and needs to be converted
if false && [ ! -d $dest/MIRD ]; then
echo "Downloading MIRD dataset..."
get_mird.sh $dest
echo "Download finished."
fi
if [ ! -d $dest/MIRACLE ]; then
echo "Downloading MIRACLE dataset..."
get_miracle.sh $dest/MIRACLE
echo "Download finished."
fi
if [ ! -d $dest/gtu-rir ]; then
echo "Downloading GTU-RIR dataset..."
get_gtu_rir.sh
mv gtu-rir $dest/gtu-rir
echo "Download finished."
fi