Skip to content

How to Install HTK on Linux (CentOS/Redhat/Debian/ubuntu)

What is HTK?
The Hidden Markov Model Toolkit (HTK) is a portable toolkit for building and manipulating hidden Markov models. HTK is primarily used for speech recognition research although it has been used for numerous other applications including research into speech synthesis, character recognition and DNA sequencing. HTK is in use at hundreds of sites worldwide.

Source: http://htk.eng.cam.ac.uk/

Download HTK from http://htk.eng.cam.ac.uk/download.shtml 

Required packeages for HTK installation

sudo apt-get update
sudo apt-get install gcc cpp make libx11-dev g++-multilib

If you have 64bit OS:

sudo apt-get install build-essential libc6-i386 libc6-dev-i386 xorg-dev libx11-xcb-dev ia32-libs

(if you get an error reinstall libx11-dev - I did this through the package manger obtained through the software centre)

CentOS/Redhat:

yum instyall libX11-devel

Extract HTK-X.X.X.tar.gz, it will create a “htk” folder

$ cd htk
$ ./configure
$ make all
$ make install

Test the installation (it should return something but not error):

$ HVite