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

2,805 views
Skip to first unread message

Vivek DCS

unread,
Jul 2, 2019, 11:50:38 AM7/2/19
to kaldi...@googlegroups.com
Hi,

I was trying to implement kaldi for Malayalam Language. All the required files have been created as per the tutorial. But the following error comes when ./run.sh instruction is executed.
Pls help me to fix this. The log file is also attached.  


hp@hp-HP-Laptop-15-da0xxx:~/Desktop/kaldi/egs/word$ sudo ./run.sh

===== PREPARING ACOUSTIC DATA =====


===== FEATURES EXTRACTION =====

steps/make_mfcc.sh --nj 1 --cmd run.pl data/train exp/make_mfcc/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: job failed, log is in exp/make_mfcc/train/make_mfcc_train.1.log
steps/make_mfcc.sh --nj 1 --cmd run.pl 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: job failed, log is in exp/make_mfcc/test/make_mfcc_test.1.log
steps/compute_cmvn_stats.sh data/train exp/make_mfcc/train mfcc
make_cmvn.sh: no such file data/train/feats.scp
steps/compute_cmvn_stats.sh data/test exp/make_mfcc/test mfcc
make_cmvn.sh: no such file data/test/feats.scp

===== PREPARING LANGUAGE DATA =====

Regards,

Vivek
make_mfcc_train.1.log

Daniel Povey

unread,
Jul 2, 2019, 12:00:25 PM7/2/19
to kaldi-help
Looks like you didn't compile Kaldi

--
Go to http://kaldi-asr.org/forums.html find out how to join
---
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 post to this group, send email to kaldi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/CA%2BxF%2B%3DYRjQ%2BKs4-HayjaZPjHQvNhpYQNtk1%2Bs%3DUbpWfYXvEtOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Vivek DCS

unread,
Jul 3, 2019, 1:04:58 PM7/3/19
to kaldi...@googlegroups.com

The compilation process completed successfully.   

ead -lm  -lm -lpthread -ldl  -o rnnlm-sentence-probs
make[1]: Leaving directory `/home/hp/Desktop/kaldi/src/rnnlmbin'
make -C cudadecoder
make[1]: Entering directory `/home/hp/Desktop/kaldi/src/cudadecoder'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/hp/Desktop/kaldi/src/cudadecoder'
make -C cudadecoderbin
make[1]: Entering directory `/home/hp/Desktop/kaldi/src/cudadecoderbin'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/hp/Desktop/kaldi/src/cudadecoderbin'
make -C matrix test
make[1]: Entering directory `/home/hp/Desktop/kaldi/src/matrix'
Running matrix-lib-test ... 4s... SUCCESS matrix-lib-test
Running sparse-matrix-test ... 0s... SUCCESS sparse-matrix-test
make[1]: Leaving directory `/home/hp/Desktop/kaldi/src/matrix'
echo Done
Done
But still the same error comes. 

I’m protected online with Avast Free Antivirus. Get it here — it’s free forever.

Daniel Povey

unread,
Jul 3, 2019, 1:06:09 PM7/3/19
to kaldi-help
OK, then it's likely a path issue.  Check your path.sh and see that it sets KALDI_ROOT to the right place.


--
Go to http://kaldi-asr.org/forums.html find out how to join
---
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 post to this group, send email to kaldi...@googlegroups.com.

Vivek DCS

unread,
Jul 3, 2019, 1:25:09 PM7/3/19
to kaldi...@googlegroups.com

Checked it also. The path is also fine.

# Defining Kaldi root directory
export KALDI_ROOT=`pwd`/../..

# Setting paths to useful tools
export PATH=$PWD/utils/:$KALDI_ROOT/src/bin:$KALDI_ROOT/tools/openfst/bin:$KALDI_ROOT/src/fstbin/:$KALDI_ROOT/src/gmmbin/:$KALDI_ROOT/src/featbin/:$KALDI_ROOT/src/lm/:$KALDI_ROOT/src/sgmmbin/:$KALDI_ROOT/src/sgmm2bin/:$KALDI_ROOT/src/fgmmbin/:$KALDI_ROOT/src/latbin/:$PWD:$PATH

# Defining audio data directory (modify it for your installation directory!)
export DATA_ROOT="/home/hp/Desktop/kaldi/egs/word/wordaudio"

# Enable SRILM
. $KALDI_ROOT/tools/env.sh
# Variable needed for proper data sorting

# Variable needed for proper data sorting
export LC_ALL=C  


I’m protected online with Avast Free Antivirus. Get it here — it’s free forever.

Daniel Povey

unread,
Jul 3, 2019, 1:27:26 PM7/3/19
to kaldi-help
You have to invoke the scripts from the same directory that your path is in.  Check that after sourcing the path
. ./path.sh
and invoking compute-mfcc-feats, it exists.

--
Go to http://kaldi-asr.org/forums.html find out how to join
---
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 post to this group, send email to kaldi...@googlegroups.com.

Vivek DCS

unread,
Jul 4, 2019, 12:33:35 PM7/4/19
to kaldi...@googlegroups.com

Checked it all. But still same error.  

Daniel Povey

unread,
Jul 4, 2019, 12:35:56 PM7/4/19
to kaldi-help
I see that I have helped you debug path issues on the list in the past. 
I think you should find someone local to help you.  It's not really rocket science.

--
Go to http://kaldi-asr.org/forums.html find out how to join
---
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 post to this group, send email to kaldi...@googlegroups.com.

Vivek DCS

unread,
Jul 14, 2019, 6:47:56 AM7/14/19
to kaldi...@googlegroups.com
Its due to  properties and  permission issues of audio files. Now it's fixed. Thanks.    
 


I’m protected online with Avast Free Antivirus. Get it here — it’s free forever.

Qiyuan An

unread,
Jul 16, 2019, 12:22:08 PM7/16/19
to kaldi-help
Hello,

Screenshot from 2019-07-12 16-34-50.png

I'm also working on kaldi to process TIMIT dataset and I think I encountered the same problem as you. How is the problem solved? Is installing qsub can solve this problem?

Thanks,
Qiyuan

Daniel Povey

unread,
Jul 16, 2019, 1:33:55 PM7/16/19
to kaldi-help
You can change queue.pl to run.pl in cmd.sh



--
Go to http://kaldi-asr.org/forums.html find out how to join
---
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 post to this group, send email to kaldi...@googlegroups.com.

Qiyuan An

unread,
Jul 16, 2019, 3:19:14 PM7/16/19
to kaldi...@googlegroups.com
It works now! Thank you!
>>> *Vivek *
>>>
>> --
>> Go to http://kaldi-asr.org/forums.html find out how to join
>> ---
>> 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 post to this group, send email to kaldi...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/kaldi-help/27e5506d-ef23-4736-8f00-36e2b4aff25c%40googlegroups.com
>> <https://groups.google.com/d/msgid/kaldi-help/27e5506d-ef23-4736-8f00-36e2b4aff25c%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> Go to http://kaldi-asr.org/forums.html find out how to join
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "kaldi-help" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/kaldi-help/tokwXTLdGFY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> kaldi-help+...@googlegroups.com.
> To post to this group, send email to kaldi...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/kaldi-help/CAEWAuyRCC2Z9AGKZvQC1nap08J4OfG0wS9DQW8Xig_f0eXOL9Q%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>


--
Qiyuan

ml colab

unread,
Jul 14, 2020, 2:19:36 AM7/14/20
to kaldi-help
Hi Dan i am getting this error message while running steps/make-mfcc.sh file in the log files 
"Segment end is too far out of file data range [0,12.2s]; skipping segment '1088-134315-0000 1088-134315-F 0 16.04 "

Screenshot from 2020-07-14 11-44-36.png

 I have segments file with [Uttr_Id,File_Id,Start_time, End_time] start_time =0 for every audio file and end_time=duration 
i once used start_time =0 end_time=start_time+Duration and start_time=end_time but i got same segemnt out of range error with different Number(start and end_time)
Please help me i am struck on it

Reply all
Reply to author
Forward
0 new messages