HTK's licence
requires you to register
before you can download the toolkit. The software is open
source but there are limitations on the distribution of the HTK
Toolkit itself. However, there is no limitation on the
distribution of the models you create with the toolkit.
Create a new directory in your home directory called 'bin', it
should have the following path (replace 'yourusername' with the user name
you are using on your system):
The HTK book is an excellent reference to the toolkit commands.
However, it is written for speech scientists and can be very
confusing to beginners.
Step 4 - Unpack you source files
Extract the files using:
Nautilus (right click each tar/gzipped file and click extract here); or
use tar from the command line for the following files:
tar -xvzf HTK-3.4-alpha.tar.gz
tar -xvzf HTK-samples-3.4-alpha.tar.gz
tar -xvzf htkbook_html.tar.gz
this should create the following directories in your bin folder:
htk-3.4
samples
htkbook
move the 'samples' and 'htkbook' directories to your htk-3.4 folder.
Step 5 - Compile & Install HTK
Compiler version
If you have a newer version of the gcc compiler (version 4 or above), you will need to install gcc version 3.4 compatibility modules so that HTK will compile properly. Use gcc's version command to see which version is installed on your system:
If you have version 4.0 or above (I have version 4.3.0) use yum to install the required files to your system:
$su
#yum install compat-gcc-34-c++ compat-gcc-34
32-bit Systems
After unpacking the sources, open a command line terminal and go
to the /hom/yourusername/bin/htk3.4 directory where you downloaded your files.
configure
The default location for binaries is "/usr/local" which
will put the tools in "/usr/local/bin". You need to change this
default location using the "./configure" script to specify where you
want the
binaries installed:
This directs the make command to put all your binaries in the following folder:
/home/yourusername/bin/htk-3.4/bin.linux
64-bit Systems
After unpacking the sources, open a command line terminal and go
to the /hom/yourusername/bin/htk3.4 directory where you downloaded your files.
You now need to install 386 compatibility versions of some development libraries:
$su
#yum install glibc-devel.i386 libX11-devel.i386
configure
The default location for binaries is "/usr/local" which
will put the tools in "/usr/local/bin". You need to change this
default location using the "./configure" script to specify where you
want the
binaries installed:
To do this, edit your '.bash_profile' file in your home
directory (in Fedora you need to show 'hidden files' in Nautilus - so
you can display file names with a period in front of them). You do this
by adding the listed paths, separated by a colon (":") to the end of
the PATH variable as follows (all one line, no spaces):
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/home/yourusename/bin/htk-3.4/bin.linux:
home/yourusename/bin/htk-3.4/lib.linux:
/home/yourusename/bin/julius-3.5.2-multipath-linuxbin/bin
Log out and log back in to make your path change effective.
Testing Your HTK/Julius Install
Type
in "HVite -V" in a Command Console Window;
if your system lists all the options available to the
hvite command, then HTK is installed properly.
Type in "julian" in a Command Console Window;
if your system displays version information for Julius, then Julius is installed properly;
If you don't see the expected results, review your installation steps for Julius or HTK to determine where
you might have made an error.
Audacity
If you are using Linux (we will be using the Fedora for these tutorials) use
the following command to download and install Audacity (as superuser):
$su
Password:
#yum install audacity
Click here to download Audacity from its web site.
Comments
Click the 'Add' link to add a comment to this page; click the 'Read More' link to view replies to a posted comment.