Possible to convert .txt file to .ark and .scp files?

1,090 views
Skip to first unread message

K.R

unread,
Dec 20, 2016, 11:26:34 AM12/20/16
to kaldi-help
I been working on building a dnn network for mfcc feature extraction, and now have a model which i want to deploy to  the kaldi framework. 

I've before converterd the .ark and .scp to .txt for training my models, but how do i convert those back to .ark .scp?

The way i converted was using copy-feats. 

../src/featbin/copy-feats scp:${WORKSPACE_SETUP_ROOT}/raw_mfcc_train.1.scp ark,t:- > raw_mfcc_train+s1.txt

Is it possible to convert .txt back to the .scp and .ark files using copy-feats, if so how?

Daniel Povey

unread,
Dec 20, 2016, 4:35:41 PM12/20/16
to kaldi-help
Read "I/O from a command line perspective in the documentation".
That .txt file is the text-form of an archive, which is readable the
same way any archive is. You can do something like
copy-feats ark:raw_mfcc_train+s1.txt ark,scp:foo.ark,foo.scp
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages