Skip to content

Instantly share code, notes, and snippets.

@jaekookang
Forked from r9y9/download_cmu_arctic.sh
Created April 17, 2020 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaekookang/766740c9d69e54166c9dc976e5b5d27f to your computer and use it in GitHub Desktop.
Save jaekookang/766740c9d69e54166c9dc976e5b5d27f to your computer and use it in GitHub Desktop.
CMU ARCTIC download script
#!/bin/bash
# This is a yet another download script for the cmu arctic speech corpus.
# The corpus will be downloaded in $HOME/data/cmu_arctic/
location=$HOME/data/cmu_arctic/
if [ ! -e $location ]
then
echo "Create " $location
mkdir -p $location
fi
root=http://festvox.org/cmu_arctic/packed/
cd $location
function download() {
identifier=$1
file=$2
echo "start downloading $identifier, $file"
mkdir -p tmp
curl -L -o tmp/${identifier}.tar.bz2 $file
tar xjvf tmp/${identifier}.tar.bz2
rm -rf tmp
}
for f in aew ahw aup awb axb bdl clb eey fem gka jmk ksp ljm lnh rms rxr slp slt
do
zipfile=${root}cmu_us_${f}_arctic.tar.bz2
download $f $zipfile
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment