kaldi-asr / kaldi

kaldi-asr/kaldi is the official location of the Kaldi project.
http://kaldi-asr.org
Other
14.29k stars 5.32k forks source link

Convert .ark file to .csv file #2927

Closed bar13290 closed 5 years ago

bar13290 commented 5 years ago

Hi, Is there a way to convert the MFCC features that extracted with Kaldi (.ark file) to a .csv file that include all the parameters of the MFCC matrix?

Thanks

jtrmal commented 5 years ago

it's not trivial, because MFCC ark contains name+matrix, so you'd have to figure out how to format the data into a csv you can play with copy feats, for example:

copy_feats scp:feats.scp ark,t:-

it should be fairly easy to convert the output to matlab matrix (for example) or post-process the output using sed. y.

On Thu, Dec 20, 2018 at 12:52 PM bar13290 notifications@github.com wrote:

Hi, Is there a way to convert the MFCC features that extracted with Kaldi (.ark file) to a .csv file that include all the parameters of the MFCC matrix?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kaldi-asr/kaldi/issues/2927, or mute the thread https://github.com/notifications/unsubscribe-auth/AKisXyptMBfg8jWRxtYKY_B7qMTtfaVZks5u62vVgaJpZM4Zb8pB .

stanleyguan commented 5 years ago

If you use Python this may also be handy for interacting with Kaldi ark files and producing a CSV from there: https://github.com/vesis84/kaldi-io-for-python