mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-08 08:34:19 +00:00
Update prepare.sh
This commit is contained in:
parent
87c7b5dc89
commit
f313bd54cc
@ -79,7 +79,7 @@ if [ $stage -le 0 ] && [ $stop_stage -ge 0 ]; then
|
|||||||
# ln -sfv /path/to/rirs_noises $dl_dir/
|
# ln -sfv /path/to/rirs_noises $dl_dir/
|
||||||
#
|
#
|
||||||
if [ ! -d $dl_dir/rirs_noises ]; then
|
if [ ! -d $dl_dir/rirs_noises ]; then
|
||||||
lhotse download rir-noise $dl_dir
|
lhotse download rir-noise $dl_dir/rirs_noises
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -89,6 +89,8 @@ if [ $stage -le 1 ] && [ $stop_stage -ge 1 ]; then
|
|||||||
# to $dl_dir/librispeech. We perform text normalization for the transcripts.
|
# to $dl_dir/librispeech. We perform text normalization for the transcripts.
|
||||||
# NOTE: Alignments are required for this recipe.
|
# NOTE: Alignments are required for this recipe.
|
||||||
mkdir -p data/manifests
|
mkdir -p data/manifests
|
||||||
|
mkdir -p $dl_dir/libri_alignments/LibriSpeech
|
||||||
|
|
||||||
lhotse prepare librispeech -p train-clean-100 -p train-clean-360 -p train-other-500 -p dev-clean \
|
lhotse prepare librispeech -p train-clean-100 -p train-clean-360 -p train-other-500 -p dev-clean \
|
||||||
-j 4 --alignments-dir $dl_dir/libri_alignments/LibriSpeech $dl_dir/librispeech data/manifests/
|
-j 4 --alignments-dir $dl_dir/libri_alignments/LibriSpeech $dl_dir/librispeech data/manifests/
|
||||||
fi
|
fi
|
||||||
@ -112,7 +114,7 @@ if [ $stage -le 3 ] && [ $stop_stage -ge 3 ]; then
|
|||||||
|
|
||||||
# We assume that you have downloaded the RIRS_NOISES corpus
|
# We assume that you have downloaded the RIRS_NOISES corpus
|
||||||
# to $dl_dir/rirs_noises
|
# to $dl_dir/rirs_noises
|
||||||
lhotse prepare rir-noise -p real_rir -p iso_noise $dl_dir/rirs_noises data/manifests
|
lhotse prepare rir-noise -p real_rir -p iso_noise $dl_dir/rirs_noises/RIRS_NOISES data/manifests
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $stage -le 4 ] && [ $stop_stage -ge 4 ]; then
|
if [ $stage -le 4 ] && [ $stop_stage -ge 4 ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user