Skip to content

Instantly share code, notes, and snippets.

@Zikovich
Forked from KarthikMAM/gridcorpus.sh
Created February 25, 2023 16:40
Show Gist options
  • Save Zikovich/6fd12835ac4d21d8afce25ec2fe3f45e to your computer and use it in GitHub Desktop.
Save Zikovich/6fd12835ac4d21d8afce25ec2fe3f45e to your computer and use it in GitHub Desktop.
Download the grid corpus dataset and extract it.
#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