shrutijpalaskar / kaldi-io-for-python

Python functions for reading kaldi data formats. Useful for rapid prototyping with python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kaldi-io-for-python

``Glue'' code connecting kaldi data and python.

Supported data types

  • vector (integer)
  • Vector (float, double)
  • Matrix (float, double)
  • Posterior (posteriors, nnet1 training targets, confusion networks, ...)

Examples

Reading feature scp example:
import kaldi_io
for key,mat in kaldi_io.read_mat_scp(file):
  ...
Writing feature ark to file/stream:
import kaldi_io
with open(ark_file,'wb') as f:
  for key,mat in dict.iteritems(): 
    kaldi_io.write_mat(f, mat, key=key)

License

Apache License, Version 2.0 ('LICENSE-2.0.txt')

Contact

  • If you have an extension to share, please create a pull request.
  • For feedback and suggestions, please create a GitHub 'Issue' in the project.
  • For the positive reactions =) I am also reachable by email: vesis84@gmail.com

About

Python functions for reading kaldi data formats. Useful for rapid prototyping with python.


Languages

Language:Python 100.0%