Created
March 28, 2017 08:13
-
-
Save KarthikMAM/d8ebde4db84a72b083df0e14242edb1a to your computer and use it in GitHub Desktop.
Download the grid corpus dataset and extract it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#preparing for download | |
mkdir "gridcorpus" | |
cd "gridcorpus" | |
mkdir "raw" "audio" "video" | |
cd "raw" && mkdir "audio" "video" | |
for i in `seq $1 $2` | |
do | |
printf "\n\n------------------------- Downloading $i th speaker -------------------------\n\n" | |
#download the audio of the ith speaker | |
cd "audio" && curl "http://spandh.dcs.shef.ac.uk/gridcorpus/s$i/audio/s$i.tar" > "s$i.tar" && cd .. | |
cd "video" && curl "http://spandh.dcs.shef.ac.uk/gridcorpus/s$i/video/s$i.mpg_vcd.zip" > "s$i.zip" && cd .. | |
if (( $3 == "y" )) | |
then | |
unzip -q "video/s$i.zip" -d "../video" | |
tar -xf "audio/s$i.tar" -C "../audio" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sharing for Python Users
Python Script