#!/bin/bash ### Festcat variables ### export PATH_TO_FESTCAT_SHELL='/gpfs/scratch/bsc88/bsc88858/data_processing/festcat_processing_test.sh' export PATH_TO_FESTCAT_PY='/gpfs/scratch/bsc88/bsc88858/data_processing/extract_festcat.py' export PATH_TO_FESTCAT_DATA='/gpfs/scratch/bsc88/bsc88858/festcat/' export FESTCAT_FINAL_PATH='/gpfs/scratch/bsc88/bsc88858/festcat_processed' ### Google_tts variables ### export PATH_TO_GOOGLE_TTS_SHELL='/gpfs/scratch/bsc88/bsc88858/data_processing/google_tts_processing_test.sh' export PATH_TO_GOOGLE_TTS_PY='/gpfs/scratch/bsc88/bsc88858/data_processing/extract_google_tts.py' export PATH_TO_GOOGLE_TTS_DATA='/gpfs/scratch/bsc88/bsc88858/google_tts' export GOOGLE_TTS_FINAL_PATH='/gpfs/scratch/bsc88/bsc88858/google_tts_processed' ### General variables ### export VCTK_FORMATER_PATH='/gpfs/scratch/bsc88/bsc88858/data_processing/ca_multi2vckt.py' export FINAL_PATH='/gpfs/scratch/bsc88/bsc88858/multispeaker_ca_test/' if [ -d "${FESTCAT_FINAL_PATH}" ]; then ### Take action if $DIR exists ### echo "Path ${FESTCAT_FINAL_PATH} already exists" else ### Control will jump here if $DIR does NOT exists ### if [ -d "${PATH_TO_FESTCAT_DATA}" ]; then source ${PATH_TO_FESTCAT_SHELL} ${FESTCAT_FINAL_PATH} ${PATH_TO_FESTCAT_DATA} ${PATH_TO_FESTCAT_PY} else echo "Fescat data not found!" fi fi if [ -d "${GOOGLE_TTS_FINAL_PATH}" ]; then ### Take action if $DIR exists ### echo "Path ${GOOGLE_TTS_FINAL_PATH} already exists" else ### Control will jump here if $DIR does NOT exists ### if [ -d "${PATH_TO_GOOGLE_TTS_DATA}" ]; then source ${PATH_TO_GOOGLE_TTS_SHELL} ${GOOGLE_TTS_FINAL_PATH} ${PATH_TO_GOOGLE_TTS_DATA} ${PATH_TO_GOOGLE_TTS_PY} else echo "Google TTS data not found!" fi fi if [ -d "${FINAL_PATH}" ]; then ### Take action if $DIR exists ### echo "Path ${FINAL_PATH} already created" else ### Control will jump here if $DIR does NOT exists ### mkdir ${FINAL_PATH} mkdir ${FINAL_PATH}/txt/ mkdir ${FINAL_PATH}/wav/ echo "Crating: ${FINAL_PATH}" python ${VCTK_FORMATER_PATH} --google-path ${GOOGLE_TTS_FINAL_PATH} --festcat-path ${FESTCAT_FINAL_PATH} --final-path ${FINAL_PATH} fi echo "Done!"