There was an error while loading. Please reload this page.
1 parent e74b918 commit ed05f17Copy full SHA for ed05f17
egs/thchs30/s5/local/thchs-30_data_prep.sh
@@ -21,7 +21,9 @@ for x in train dev test; do
21
cd $dir/data/$x
22
rm -rf wav.scp utt2spk spk2utt word.txt phone.txt text
23
echo "preparing scps and text in data/$x"
24
- for nn in `find $corpus_dir/$x/*.wav | sort -u | xargs -i basename {} .wav`; do
+ #updated new "for loop" figured out the compatibility issue with Mac created by Xi Chen, in 03/06/2018
25
+ #for nn in `find $corpus_dir/$x/*.wav | sort -u | xargs -i basename {} .wav`; do
26
+ for nn in `find $corpus_dir/$x -name "*.wav" | sort -u | xargs -I {} basename {} .wav`; do
27
spkid=`echo $nn | awk -F"_" '{print "" $1}'`
28
spk_char=`echo $spkid | sed 's/\([A-Z]\).*/\1/'`
29
spk_num=`echo $spkid | sed 's/[A-Z]\([0-9]\)/\1/'`
0 commit comments