DeepLearningExamples/PyTorch/SpeechSynthesis/Tacotron2/scripts/prepare_dataset.sh
Przemek Strzelczyk 0663b67c1a Updating models
2019-07-08 22:51:28 +02:00

17 lines
360 B
Bash
Executable file

#!/usr/bin/env bash
set -e
DATADIR="LJSpeech-1.1"
BZ2ARCHIVE="${DATADIR}.tar.bz2"
ENDPOINT="http://data.keithito.com/data/speech/$BZ2ARCHIVE"
if [ ! -d "$DATADIR" ]; then
echo "dataset is missing, unpacking ..."
if [ ! -f "$BZ2ARCHIVE" ]; then
echo "dataset archive is missing, downloading ..."
wget "$ENDPOINT"
fi
tar jxvf "$BZ2ARCHIVE"
fi