Download HTK 3.2.1

We need to use HTK release 3.2.1 because there are problems with Acoustic Model Adaptation using HTK release 3.3 (see Ticket #41 for details).

Step 1 - Register with HTK 

Step 2 - Download HTK Toolkit

Step 3 - Compile & Install HTK

HTK consists of two libraries (built from the source code in HTKLib/ and HLMLib/) and a set of command line tools (in HTKTools/ and HLMTools/).  This Process assumes you are using Fedora Core.

1. Create a new folder for version 3.2.1 of HTK (something other than your HTK 3.3 release directory).  This tutorial will assume you are installing to this directory:

  • /home/yourhomedirectory/htk-3.2.1 
2. Unpack your HTK distribution to the directory you just created.

3. Create a script called 'makeHTK.sh' in the root directory of HTK (i.e. /home/yourhomedirectory/htk-3.2.1) containing the following:

 

note: If you are using the 64bit distribution of Fedora, follow the instructions for creating you makeHTK script at this link).

 

#!/bin/sh
####################################################################
###
### script name: makeHTK.sh
### modified by: Ken MacLean
### email: [email protected]
### Date: 2006.08.10
### Command: ./makeHTK.sh
### Version: 0.1
###        
### Copyright (C) 2006 Ken MacLean
###
### This program is free software; you can redistribute it and/or
### modify it under the terms of the GNU General Public License
### as published by the Free Software Foundation; either version 2
### of the License, or (at your option) any later version.
###
### This program is distributed in the hope that it will be useful,
### but WITHOUT ANY WARRANTY; without even the implied warranty of
### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
### GNU General Public License for more details.
###
####################################################################
# change this to your home directory path!!!
export HBIN='/home/yourhomedirectory/htk-3.2.1'

export HTKCF='-ansi -Wall -Wno-switch -g -O2 -DOSS_AUDIO'
export HTKLF='-L/usr/X11R6/lib'
export HTKCC='gcc'
export Arch=LINUX
export Objcopy="echo"
export PRILF='-x'
export CPU=linux
export SHRLF='-shared'
export LIBEXT='so'

cd ./HTKLib
make clean
make

cd ../HTKTools
make clean
make

cd ../HLMLib
make clean
make

cd ../HLMTools
make clean
make

echo '***HTK make completed***'

Modify the HBIN variable in the above script to point to your install directory.

4. Set your permissions to allow execution of this script.

5. Create a directory called 'bin.linux' in your HBIN directory (this is where your HTK 3.2.1 executables will be created).

6. Execute this script as follows:

$./makeHTK.sh

Don't Update Your User Path

You should not update your user path (i.e. don't edit the .bash_profile in your home directory) to include HTK 3.2.1 binaries or libraries - this may cause conflicts with your currently installed copy of HTK3.3.