Introduction
An HTK file belongs to the HMM Tool Kit (HTK), a toolkit for building hidden Markov models, used mainly in speech recognition research. The same simple layout carries sampled waveforms and the parameter vectors computed from them.
Structure
A 12-byte big-endian header is followed by the data. It holds the number of samples (4 bytes), the sample period in units of 100 ns (4 bytes), the size of a sample in bytes (2 bytes) and a code for the kind of data (2 bytes). A waveform has 2-byte samples and kind 0.
Not described
This page is a first outline. The details of the layout are not yet described here.
Known, not yet covered
- Reference: the parameter kinds, their qualifiers and compressed parameter files, which the HTK Book documents.
- Viewer: the site has no viewer for this format.
Links
Software
- HTK – the HMM Tool Kit, which defines the format
- libsndfile – sound file library that reads and writes HTK 16-bit waveforms (Windows, macOS, Linux)
Reference
- libsndfile htk.c – reader and writer for HTK waveform files (C)