Created
August 10, 2021 08:18
-
-
Save r9y9/016cd4a864d78952ce1f6bba8a124ee4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
JVSDIR=~/data/jvs_ver1 | |
OUTDIR=~/data/jvs_r9y9_ver1 | |
mkdir -p $OUTDIR | |
# link all wave file | |
for speaker in jvs{001..100}; do | |
echo $speaker | |
for corpus in nonpara30 parallel100; do | |
mkdir -p $OUTDIR/$speaker/$corpus/lab/mon/ | |
mkdir -p $OUTDIR/$speaker/$corpus/lab/ful | |
find $JVSDIR/$speaker/$corpus/lab/mon -name '*.lab' | parallel ln {} $OUTDIR/$speaker/$corpus/lab/mon/${speaker}_{/} | |
find $JVSDIR/$speaker/$corpus/lab/ful -name '*.lab' | parallel ln {} $OUTDIR/$speaker/$corpus/lab/ful/${speaker}_{/} | |
done | |
for corpus in falset10 nonpara30 parallel100 whisper10; do | |
mkdir -p $OUTDIR/$speaker/$corpus/wav24kHz16bit | |
find $JVSDIR/$speaker/$corpus/wav24kHz16bit -name '*.wav' | parallel ln {} $OUTDIR/$speaker/$corpus/wav24kHz16bit/${speaker}_{/} | |
done | |
done | |
# move known mistake | |
mv $OUTDIR/jvs058/parallel100/wav24kHz16bit/jvs058_VOICEACTRESS100_021.wav $OUTDIR/jvs058/parallel100/wav24kHz16bit/jvs058_VOICEACTRESS100_022.wav | |
mv $OUTDIR/jvs058/parallel100/wav24kHz16bit/jvs058_VOICEACTRESS100_020.wav $OUTDIR/jvs058/parallel100/wav24kHz16bit/jvs058_VOICEACTRESS100_021.wav | |
mv $OUTDIR/jvs058/parallel100/wav24kHz16bit/jvs058_VOICEACTRESS100_019.wav $OUTDIR/jvs058/parallel100/wav24kHz16bit/jvs058_VOICEACTRESS100_020.wav | |
mv $OUTDIR/jvs058/parallel100/wav24kHz16bit/jvs058_VOICEACTRESS100_018.wav $OUTDIR/jvs058/parallel100/wav24kHz16bit/jvs058_VOICEACTRESS100_019.wav | |
mv $OUTDIR/jvs058/parallel100/wav24kHz16bit/jvs058_VOICEACTRESS100_017.wav $OUTDIR/jvs058/parallel100/wav24kHz16bit/jvs058_VOICEACTRESS100_018.wav | |
mv $OUTDIR/jvs058/parallel100/wav24kHz16bit/jvs058_VOICEACTRESS100_016.wav $OUTDIR/jvs058/parallel100/wav24kHz16bit/jvs058_VOICEACTRESS100_017.wav | |
mv $OUTDIR/jvs058/parallel100/wav24kHz16bit/jvs058_VOICEACTRESS100_015.wav $OUTDIR/jvs058/parallel100/wav24kHz16bit/jvs058_VOICEACTRESS100_016.wav | |
# remove known mistake | |
rm $OUTDIR/jvs009/parallel100/wav24kHz16bit/jvs009_VOICEACTRESS100_086.wav | |
rm $OUTDIR/jvs009/parallel100/wav24kHz16bit/jvs009_VOICEACTRESS100_095.wav | |
rm $OUTDIR/jvs017/parallel100/wav24kHz16bit/jvs017_VOICEACTRESS100_082.wav | |
rm $OUTDIR/jvs018/parallel100/wav24kHz16bit/jvs018_VOICEACTRESS100_072.wav | |
rm $OUTDIR/jvs022/parallel100/wav24kHz16bit/jvs022_VOICEACTRESS100_047.wav | |
rm $OUTDIR/jvs024/parallel100/wav24kHz16bit/jvs024_VOICEACTRESS100_088.wav | |
rm $OUTDIR/jvs036/parallel100/wav24kHz16bit/jvs036_VOICEACTRESS100_057.wav | |
rm $OUTDIR/jvs038/parallel100/wav24kHz16bit/jvs038_VOICEACTRESS100_006.wav | |
rm $OUTDIR/jvs038/parallel100/wav24kHz16bit/jvs038_VOICEACTRESS100_041.wav | |
rm $OUTDIR/jvs043/parallel100/wav24kHz16bit/jvs043_VOICEACTRESS100_085.wav | |
rm $OUTDIR/jvs047/parallel100/wav24kHz16bit/jvs047_VOICEACTRESS100_085.wav | |
rm $OUTDIR/jvs048/parallel100/wav24kHz16bit/jvs048_VOICEACTRESS100_043.wav | |
rm $OUTDIR/jvs048/parallel100/wav24kHz16bit/jvs048_VOICEACTRESS100_076.wav | |
rm $OUTDIR/jvs051/parallel100/wav24kHz16bit/jvs051_VOICEACTRESS100_025.wav | |
rm $OUTDIR/jvs055/parallel100/wav24kHz16bit/jvs055_VOICEACTRESS100_056.wav | |
rm $OUTDIR/jvs055/parallel100/wav24kHz16bit/jvs055_VOICEACTRESS100_076.wav | |
rm $OUTDIR/jvs055/parallel100/wav24kHz16bit/jvs055_VOICEACTRESS100_099.wav | |
rm $OUTDIR/jvs058/parallel100/wav24kHz16bit/jvs058_VOICEACTRESS100_014.wav | |
rm $OUTDIR/jvs059/parallel100/wav24kHz16bit/jvs059_VOICEACTRESS100_061.wav | |
rm $OUTDIR/jvs059/parallel100/wav24kHz16bit/jvs059_VOICEACTRESS100_064.wav | |
rm $OUTDIR/jvs059/parallel100/wav24kHz16bit/jvs059_VOICEACTRESS100_066.wav | |
rm $OUTDIR/jvs059/parallel100/wav24kHz16bit/jvs059_VOICEACTRESS100_074.wav | |
rm $OUTDIR/jvs060/parallel100/wav24kHz16bit/jvs060_VOICEACTRESS100_082.wav | |
rm $OUTDIR/jvs074/parallel100/wav24kHz16bit/jvs074_VOICEACTRESS100_062.wav | |
rm $OUTDIR/jvs098/parallel100/wav24kHz16bit/jvs098_VOICEACTRESS100_060.wav | |
rm $OUTDIR/jvs098/parallel100/wav24kHz16bit/jvs098_VOICEACTRESS100_099.wav | |
# missing lab | |
rm $OUTDIR/jvs010/nonpara30/wav24kHz16bit/jvs010_LOANWORD128_089.wav | |
rm $OUTDIR/jvs058/parallel100/wav24kHz16bit/jvs098_VOICEACTRESS100_022.wav |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment