Read and write HTK and HTS files from python.
Project description
This python package allows reading and writing of files in some of the formats used by Hidden Markov Model Toolkit (HTK) and HMM-based Speech Synthesis System (HTS). The following file formats are currently supported:
alignment files (also known as “label” files)
decision tree question set files
decision tree files
Alignments, trees, etc are represented in memory using simple python data structures. Files in the above formats may be read into, or written from, these python representations.
License
Please see the file License for details of the license and warranty for htk_io.
Installation
For most purposes the simplest way to install htk_io is to use pip:
sudo pip install htk_io
This installs the latest released version of htk_io on PyPI. Alternatively you can download htk_io from PyPI and install it using:
sudo python setup.py install
The latest development version of htk_io is available from a github repository (see below).
To check that htk_io is installed correctly you can run the test suite:
python -m unittest discover htk_io
Usage
Examples of usage of various functions and classes are included in their docstrings. A few examples of files in the formats this package can read and write are provided in the example directory.
Source
The source code is hosted in the htk_io github repository. To obtain the latest source code using git:
git clone git://github.com/MattShannon/htk_io.git
Development is in fact done using darcs, with the darcs repository converted to a git repository using darcs-to-git.
Bugs
Please use the issue tracker to submit bug reports.
Contact
The author of htk_io is Matt Shannon.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.