Skip to main content

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 HTK / HTS file formats are currently supported:

  • alignment files (also known as “label” files)

  • decision tree question set files

  • decision tree files

  • raw vector sequence files, used by HTS for storing speech parameter sequences

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. For example in Debian and Ubuntu:

sudo apt-get install python-numpy
sudo pip install htk_io

The first command installs numpy from the system repository, since installing numpy using pip is generally not recommended. The second command installs the latest released version of htk_io on PyPI, together with any currently uninstalled python packages required by htk_io.

htk_io can also be installed in a virtualenv:

sudo apt-get install python-numpy
virtualenv --system-site-packages env
env/bin/pip install htk_io

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.

To install any currently uninstalled python packages required by htk_io:

sudo apt-get install cython python-numpy
sudo pip install -r requirements.txt

Bugs

Please use the issue tracker to submit bug reports.

Contact

The author of htk_io is Matt Shannon.

Release files for htk_io 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for htk_io 0.5
File Size Uploaded
htk_io-0.5.tar.gz 16.2 kB Details

Release files / htk_io-0.5.tar.gz

Download URL htk_io-0.5.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3dc0d0a90373d0eebbc214832afe65437d5add2a1980618ec805fde97aca60bd
BLAKE2b-256 checksum
How to use checksums
e4fab297c7b058da580cdac7a06ea4bbf9254eef31f5f0015f3639a67da23f80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5 This release

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page