Skip to content

DingKe/kaldi-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a set of Python wrappers for Kaldi input-output classes.

Installation

Simply run

./setup.py install

Usage

It allows you to do e.g.:

  In [1]: import kaldi_io
  In [2]: feat_reader = kaldi_io.SequentialBaseFloatMatrixReader('scp:./mfcc/raw_mfcc_test.1.scp')
  In [3]: next(feat_reader)
  Out[3]: 
  ('FDHC0_SI1559', Shape: (338, 13)
   [[ 47.97408295 -21.51651001 -24.72166443 ...,  -7.34391451  -5.35192871
       1.24314117]
    [ 46.00983429 -19.34067917 -20.49114227 ...,  -2.23715401  -3.65503502
      -1.64697027]
    [ 43.06345367 -21.29892731 -15.17295933 ...,  -6.0672245  -14.09746265
      -9.02336311]
    ..., 
    [ 37.66175842 -27.93688965 -10.73719597 ...,  -4.36497116  -3.1932559
       2.3135519 ]
    [ 38.15282059 -30.81328964 -11.75108433 ...,  -6.77649689  -3.78556442
       2.52763462]
    [ 38.64388275 -29.08744812  -9.59657097 ...,  -1.66973591  -0.54327661
       9.77887821]])

About

Python wrappers for Kaldi data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 49.6%
  • Python 47.8%
  • Makefile 2.6%