Blame view
egs/tunisian_msa/s5/local/tamsa_download.sh
520 Bytes
8dcb6dfcb first commit |
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 |
#!/bin/bash # Copyright 2018 John Morgan # Apache 2.0. speech=$1 # where to put the downloaded speech corpus download_dir=$(pwd) data_dir=$download_dir/Tunisian_MSA/data # download the corpus from openslr if [ ! -f $download_dir/tamsa.tar.gz ]; then wget -O $download_dir/tamsa.tar.gz $speech else echo "$0: The corpus $speech was already downloaded." fi if [ ! -d $download_dir/Tunisian_MSA ]; then ( cd $download_dir tar -xzf tamsa.tar.gz ) else echo "$0: The corpus was already unzipped." fi |