Error while extracting MFCC features

139 views
Skip to first unread message

Kodali Radha 20PHD7093

unread,
Nov 18, 2021, 11:29:53 PM11/18/21
to kaldi-help
Dear team, while Im extracting MFCC features Im getting the following error and I referred previous links with same error and many stated to compile again properly. so I compiled again but still Im facing same issue. Can you please help me in resolving this. Thanks
---------------------------------------------------------------------------------------------------------------------------
My Terminal
--------------------------
radha@radha-Lenovo-IdeaPad-S340-14IIL:~/kaldi/egs/trail1/s5$ steps/make_mfcc.sh --cmd "$train_cmd" --nj 4 $x exp/make_mfcc/$x $mfccdir
steps/make_mfcc.sh --cmd run.pl --nj 4 data/train exp/make_mfcc/data/train mfcc
utils/validate_data_dir.sh: Successfully validated data-directory data/train
steps/make_mfcc.sh: [info]: no segments file exists: assuming wav.scp indexed by utterance.
run.pl: 4 / 4 failed, log is in exp/make_mfcc/data/train/make_mfcc_train.*.log
-------------------------------------------------------------------------------------------------------------------------------
cm.sh----> set the parallelisation to run.pl
-------------------------------------
export train_cmd="run.pl"
export decode_cmd="run.pl --mem 2G"
# the use of cuda_cmd is deprecated, used only in 'nnet1',
export cuda_cmd="run.pl --gpu 1"

if [ "$(hostname -d)" == "fit.vutbr.cz" ]; then
  queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf,
  export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2"
  export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1"
  export cuda_cmd="queue.pl --config $queue_conf --gpu 1 --mem 10G --tmp 40G"
fi
-----------------------------------------------------------------
make_mfcc/data/train.1.log:
--------------------------------
# compute-mfcc-feats --write-utt2dur=ark,t:exp/make_mfcc/data/train/utt2dur.1 --verbose=2 --config=conf/mfcc.conf scp,p:exp/make_mfcc/data/train/wav_train.1.scp ark:- | copy-feats --write-num-frames=ark,t:exp/make_mfcc/data/train/utt2num_frames.1 --compress=true ark:- ark,scp:/home/radha/kaldi/egs/trail1/s5/mfcc/raw_mfcc_train.1.ark,/home/radha/kaldi/egs/trail1/s5/mfcc/raw_mfcc_train.1.scp 
# Started at Fri Nov 19 09:48:09 IST 2021
#
copy-feats --write-num-frames=ark,t:exp/make_mfcc/data/train/utt2num_frames.1 --compress=true ark:- ark,scp:/home/radha/kaldi/egs/trail1/s5/mfcc/raw_mfcc_train.1.ark,/home/radha/kaldi/egs/trail1/s5/mfcc/raw_mfcc_train.1.scp 
ERROR (compute-mfcc-feats[5.5.989~1-66f5]:ReadConfigFile():parse-options.cc:479) Reading config file conf/mfcc.conf: line 1 does not look like a line from a Kaldi command-line program's config file: should be of the form --x=y.  Note: config files intended to be sourced by shell scripts lack the '--'.

[ Stack-Trace: ]
//home/radha/kaldi/src/lib/libkaldi-base.so(kaldi::MessageLogger::LogMessage() const+0x793) [0x7f6b9538f1c3]
compute-mfcc-feats(kaldi::MessageLogger::LogAndThrow::operator=(kaldi::MessageLogger const&)+0x25) [0x56511e6e1c03]
//home/radha/kaldi/src/lib/libkaldi-util.so(kaldi::ParseOptions::ReadConfigFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x528) [0x7f6b9546a7cc]
//home/radha/kaldi/src/lib/libkaldi-util.so(kaldi::ParseOptions::Read(int, char const* const*)+0x132) [0x7f6b9546abbe]
compute-mfcc-feats(main+0x671) [0x56511e6df67a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f6b94f880b3]
compute-mfcc-feats(_start+0x2e) [0x56511e6def4e]

kaldi::KaldiFatalErrorLOG (copy-feats[5.5.989~1-66f5]:main():copy-feats.cc:143) Copied 0 feature matrices.
# Accounting: time=0 threads=1
# Ended (code 1) at Fri Nov 19 09:48:09 IST 2021, elapsed time 0 seconds

Jan Yenda Trmal

unread,
Nov 18, 2021, 11:40:14 PM11/18/21
to kaldi-help
show content of conf/mfcc.conf 
as it says:
ERROR (compute-mfcc-feats[5.5.989~1-66f5]:ReadConfigFile():parse-options.cc:479) Reading config file conf/mfcc.conf: line 1 does not look like a line from a Kaldi command-line program's config file: should be of the form --x=y.  Note: config files intended to be sourced by shell scripts lack the '--'.
--
Go to http://kaldi-asr.org/forums.html to find out how to join the kaldi-help group
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/efcdbcd2-7230-47ea-9272-8cf82fc6bfb8n%40googlegroups.com.

Kodali Radha 20PHD7093

unread,
Nov 18, 2021, 11:46:41 PM11/18/21
to kaldi-help
 conf/mfcc.conf 
-----------------------------------------------------
–use-energy=false
–sample-frequency=44100
---------------------------------------------
Because my audio files are with fs=44100 I changed it according. Am I wrong?

Kodali Radha 20PHD7093

unread,
Nov 18, 2021, 11:49:50 PM11/18/21
to kaldi-help
I resolved... Thanks letting me know the error location. Instead of '-' I used two '--"

Jan Yenda Trmal

unread,
Nov 18, 2021, 11:54:50 PM11/18/21
to kaldi-help
you have a double-width dash instead of two single-width minus signs... this is a second weird typo-style issue you had... are you copying these things from somewhere? 
Or do you have a weird keyboard setup?
y.

Kodali Radha 20PHD7093

unread,
Nov 19, 2021, 12:18:53 AM11/19/21
to kaldi-help
No, actually Im following kaldi for dummies in official site only, but If I get any error I try to google them for help, finding solutions in github, and placing them in files leads to these typo-style issues. Being a newbie Im unable to trace the location of error. Sorry to trouble you, but will enhance my knowledge in KALDI with consistency and your support. Thank you

软件开发工作经验

unread,
Nov 19, 2021, 5:20:57 AM11/19/21
to kaldi-help

LOG (arpa2fst[5.5.839~8-0c6a]:Read():arpa-file-parser.cc:149) Reading \2-grams: section.
WARNING (arpa2fst[5.5.839~8-0c6a]:Read():arpa-file-parser.cc:259) Of 8453 parse warnings, 30 were reported. Run program with --max_warnings=-1 to see all warnings
LOG (arpa2fst[5.5.839~8-0c6a]:RemoveRedundantStates():arpa-lm-compiler.cc:359) Reduced num-states from 7577 to 172

i think 172 range is very low,so give me very low word id,then can't get right result.

Jan Yenda Trmal

unread,
Nov 19, 2021, 10:34:37 AM11/19/21
to kaldi-help
there were some errors/warning about words being OOVs or something else in the output before this, I'm sure
y.

--
Go to http://kaldi-asr.org/forums.html to find out how to join the kaldi-help group
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages