akhaliq3
spaces demo
2b7bf83
raw
history blame contribute delete
553 Bytes
#!/bin/bash
# Copyright 2019 Tomoki Hayashi
# MIT License (https://opensource.org/licenses/MIT)
download_dir=$1
# check arguments
if [ $# != 1 ]; then
echo "Usage: $0 <download_dir>"
exit 1
fi
set -euo pipefail
cwd=$(pwd)
if [ ! -e "${download_dir}/LJSpeech-1.1" ]; then
mkdir -p "${download_dir}"
cd "${download_dir}"
wget http://data.keithito.com/data/speech/LJSpeech-1.1.tar.bz2
tar -vxf ./*.tar.bz2
rm ./*.tar.bz2
cd "${cwd}"
echo "Successfully downloaded data."
else
echo "Already exists. Skipped."
fi