1.http://htk.eng.cam.ac.uk/download.shtml
Official website Download HTK source code and Hdecode
2. Unzip htk-3.5.beta-2.tar.gz, hdecode-3.5.beta-1.tar.gz, and merge it into a folder HTK
3. View Htk/readme
After deciding which type to install,
According to the description installation can
HTK 3.5 comes with three sets of makefiles enabling compilation for:
1. CPU (Standard)
2. CPU using MKL (Intel Math Kernel Library)
3. Nvidia GPUs (Graphic processing Unit) using the nvidia CUDA compiler NVCC
These alternative makefiles is located in each of the following directories:
Htklib, Hlmlib, Htktools, Hlmtools
examine the MAKEFILECPU, MAKEFILEMKL and MAKEFILENVCC
Files in each of these directories and change the default
locations of Cpu/gpu compilers and libraries to match the
locations on the system for which HTK 3.5 are to be installed.
in order to compile either the standard CPU version, or
The CPU version with MKL support or GPU version execute one of the following
1. make-f makefilecpu All
2. Make-f makefilemkl All
3. Make-f MAKEFILENVCC All
In turn in Htklib, Hlmlib, Htktools and Hlmtools.
Having compiled one of the branches (CPU/MKL/NVCC), the
relevant HTK tools can be installed executing one of the following
1. Make-f makefilecpu Install
2. Make-f makefilemkl Install
3. Make-f MAKEFILENVCC Install
commands in both the Htktools and Hlmtools directories. By default HTK
tools would be installed in Bin.cpu, BIN.MKL or Bin.gpu depending
On the branch.
Prior to compiling a new branch it's important to clean the distribution
1. make-f makefilecpu Clean
2. Make-f makefilemkl Clean
3. make-f MAKEFILENVCC Clean
Hdecode
=======
If You is also building Hdecode (available from the HTK website, under a
different licence from HTK), you'll firstly need to unpack the Hdecode
source code (in the same directory with which you unpacked the HTK
sources). Then follow the steps above for first building HTK, and then execute
The following command in Htklvrec directory:
1. make-f makefilecpu All
2. Make-f makefilecpu Install
or
1. make-f makefilemkl All
2. Make-f makefilemkl Install
or
1. make-f MAKEFILENVCC All
2. Make-f MAKEFILENVCC Install
depending on whether HTK is the compiled for CPU, the CPU with the MKL support or GPU.
4. Be careful when the test is installed correctly
You have to add HTK/BIN.CPU to the environment variable------I installed the CPU standard type
Command Line Input
Vim. BASHRC
Add on last line
Export path= $PATH:/home/lc/Download/htk/bin.cpu
Then go back to the command line and enter
source. BASHRC
Make the change take effect
And then proceed according to the readme description.
Testing the installation
========================
As an initial test of the installation please run the HTK demonstration
using the configuration file SAMPLES/HTKDEMO/CONFIGS/MONPLAINM1S1.DCF.
There is a README file in the Samples/htkdemo directory that explains
The operation of the demonstration in detail and, in short, you need
To run the demonstration script passing it the configuration file
SAMPLES/HTKDEMO/CONFIGS/MONPLAINM1S1.DCF as input.
Test
Ubuntu 14.04 64-bit installation HTK3.5