kashkar
kashkar

Reputation: 663

Error with run.sh in kaldi tidigits example, what am I doing wrong?

I'm just setting up Kaldi for the first time and going through the tidigits example. However with run.sh, I get:

steps/make_mfcc.sh --cmd run.pl --mem 2G --nj 20 data/test exp/make_mfcc/test mfcc

utils/validate_data_dir.sh: Successfully validated data-directory data/test

steps/make_mfcc.sh: [info]: no segments file exists: assuming wav.scp indexed by utterance.

run.pl: 20 / 20 failed, log is in exp/make_mfcc/test/make_mfcc_test.*.log

Looking at the log files, I see the issue is:

bash: line 1: compute-mfcc-feats: command not found

bash: line 1: copy-feats: command not found

This seems to be a PATH issue, and looking at other forums online seems to confirm this. However I'm not sure how to resolve the PATH issue. I've traced that compute-mfcc-feats and copy-feats commands are called in make_mfcc.sh in the steps folder (supposedly a symlink to the wsj example). Please help!

Upvotes: 0

Views: 1858

Answers (1)

Nikolay Shmyrev
Nikolay Shmyrev

Reputation: 25220

Path to executables is configured with KALDI_ROOT variable in Kaldi recipes in path.sh script inside the recipe, for example, inside tidigits it is kaldi/egs/tidigits/s5/path.sh. The path specified is relative, so you must run commands from kaldi/egs/tidigits/s5 folder and not from other folder. There could be following problems

  1. You didn't compile Kaldi and binary does not exist in kaldi/src/featbin
  2. You moved the training folder from kaldi and you didn't update the KALDI_ROOT variable in path.sh
  3. You run the command run.sh from some other folder, not from kaldi/egs/tidigits/s5 folder.

Usually you simply need to check contents of path.sh and specify the proper kaldi root there.

Upvotes: 1

Related Questions