Skip to content
Snippets Groups Projects
Commit 2b4894ca authored by Dan Povey's avatar Dan Povey
Browse files

Fixing TIDIGITS example scripts to run directly from LDC-distributed data.

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@1117 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent 6e3ca0ca
Branches
No related tags found
No related merge requests found
......@@ -18,14 +18,25 @@ mkdir -p $tmpdir
# Note: the .wav files are not in .wav format but "sphere" format (this was
# produced in the days before Windows).
find $tidigits/tidigits/train -name '*.wav' > $tmpdir/train.flist
if [ -d $tidigits/data ]; then
rootdir=$tidigits/data/adults
elif [ -d $tidigits/tidigits ]; then
# This is, I think, a modified
# version of the format that exists at BUT.
rootdir=$tidigits/tidigits
else
echo "Tidigits directory $tidigits does not have expected format."
fi
find $rootdir/train -name '*.wav' > $tmpdir/train.flist
n=`cat $tmpdir/train.flist | wc -l`
[ $n -eq 8623 ] || echo Unexpected number of training files $n versus 8623
find $tidigits/tidigits/test -name '*.wav' > $tmpdir/test.flist
find $rootdir/test -name '*.wav' > $tmpdir/test.flist
n=`cat $tmpdir/test.flist | wc -l`
[ $n -eq 8700 ] || echo Unexpected number of test files $n versus 8700
sph2pipe=$KALDI_ROOT/tools/sph2pipe_v2.5/sph2pipe
if [ ! -x $sph2pipe ]; then
echo "Could not find (or execute) the sph2pipe program at $sph2pipe";
......
......@@ -2,7 +2,7 @@
# Note: this TIDIGITS setup has not been tuned at all and has some obvious
# deficiencies; this has been created as a starting point for a tutorial.
# We're just using the "adults" data here, not the data from children.
. ./cmd.sh ## You'll want to change cmd.sh to something that will work on your system.
## This relates to the queue.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment