Duc Le

Ph.D. Candidate

Computational Human-Centered Analysis and Integration Laboratory

Department of Electrical Engineering and Computer Science

University of Michigan, Ann Arbor

Use your own features with HTK (Python version)

I often find it useful to use my own custom features with HTK, which requires conversion of a feature file to HTK format. There are code samples that do this in C and MatLab. Unfortunately I couldn't find any Python version of the code, so I decided to write it myself. Here's the code snippet and an example of it in action.

To read the custom features with HList, you'll need to provide a config file telling HTK to expect user-defined features:

    HList -C config.txt saved.htk

Here is an example config.txt. Depending on your machine, the line NATURALREADORDER = T may not be needed.

INTERSPEECH 2016 Replication

Click here for the resources necessary to replicate "Duc Le and Emily Mower Provost. Improving Automatic Recognition of Aphasic Speech with AphasiaBank. INTERSPEECH 2016." Feel free to contact me if you have questions!