Click here to register.

Linux: Download Required Software

Click here for the Windows version of this tutorial 

VoxForge directory

Create VoxForge directory

1.  Open a Linux terminal, create voxforge directory in your home directory

  • from the command line, type:

$mkdir voxforge

  • go into your voxforge directory

$cd voxforge

  • within voxforge, create another folder called 'bin' (bin is a Unix standard name given to the folder containing executable programs)

$mkdir bin

this creates the following folder path:

/home/username/voxforge/bin

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.

HTK's licence requires you to register before you can download the toolkit.   The source of the software is available but there are limitations on the distribution of the HTK Toolkit itself.  However, there is no limitation on the distribution of the acoustic models models you create with the toolkit.

Step 1 - Register with HTK 

Step 2 - Download HTK Toolkit and Samples

Create a new directory in your voxforge directory called 'bin', it should have the following path (replace 'username' with the user name you are using on your system):

  • /home/usename/voxforge/bin 

click the following links:

and save them to your new bin directory.

 

Step 3 - 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 file:
    • tar -xvzf HTK-3.4.1.tar.gz

this should create the following directory in your bin folder:

  • voxforge/bin/htk

 

Step 4 - 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:

$ gcc -v

Using built-in specs.

...

Thread model: posix
gcc version 4.8.3 20140911 (Red Hat 4.8.3-7) (GCC)

If you have version 4.0 or above (I have version 4.8.3) use yum to install the required files to your system:

$su

#yum install compat-gcc-34-c++ compat-gcc-34

(you may also need x11 development libraries:  yum install libx11-devel)

32-bit Systems

After unpacking the sources, open a command line terminal and go to the /home/username/voxforge/bin/htk 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:

$./configure --prefix=/home/username/voxforge/bin/htk

This directs the make command to put all your binaries in the following folder:

  • /home/username/voxforge/bin/htk/bin.linux

64-bit System

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:

$ linux32 bash

$./configure CC=gcc34 --prefix=/home/username/voxforge/bin/htk

This directs the make command to put all your binaries in the following folder:

  •  /home/username/voxforge/bin/htk/bin.linux

 

make 

To build the libraries and binaries, execute the following:

$make

Running the following command will install them: 

$make install

 

If you get the following error

make[1]: Entering directory `/home/username/voxforge/bin/htk/HLMTools'
Makefile:77: *** missing separator (did you mean TAB instead of 8 spaces?).  Stop.
make[1]: Leaving directory `/home/username/voxforge/bin/htk/HLMTools'

 

you need to fix a minor bug in an HTK Makefile

$ gedit /home/username/voxforge/bin/htk/HLMTools/Makefile

mkinstalldir:
        if [ ! -d $(bindir) -a X_ = X_yes ] ; then mkdir -p $(bindir) ; fi

find line 77

and replace the leading spaces with a tab (make sure your editor acutally puts in a tab character), and re-run make.

 

Step 5 - testing

See testing in the 'Update Your User Path' section.

Julius

Julius is a large vocabulary continuous speech recognition (LVCSR) engine.  Julius can be used for command and control and dictation applications.

Julius has no limitations on distribution.  It uses Acoustic Models in HTK format, and Grammar files in its own format.

Step 1 - Download Julius

click the following link: 

  • get current binaries from Julius web site (32-bit binaries compiled with: --with-mictype=oss)

-or-

  • Julius binaries from VoxForge (64-bit binaries compiled with: --with-mictype=alsa)

and save it to your '/home/yourusename/voxforge/bin' directory.

(to compile Julius from source

 

If you get the following error when you run julius:

### read waveform input
Stat: adin_oss: device name = /dev/dsp (application default)
Error: adin_oss: failed to open /dev/dsp
failed to begin input stream

use the VoxForge version of Julius compiled with alsa.

 

Step 2 - Extract Julius 

Extract the file using:

  • Nautilus (right click the tar/gzipped file and click extract here)

-or-

  • use tar from the command line:
    • tar -xvzf julius-4.3.1.tar.gz

this should create a julius-4.3.1 directory in your bin folder.

 

Step 3 - testing

See testing in the 'Update Your User Path' section. 

Update User Path

To update your user path (which tells your command line where to search for executable files)  you need to add the following directories your user path variable:

  • /home/yourusename/voxforge/bin/htk/bin
  • /home/yourusename/voxforge/bin/julius-4.3.1-linuxbin/bin

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):

$ gedit ~/ .bash_profile

# User specific environment and startup programs
PATH=$PATH:$HOME/voxforge/bin/htk/bin:
$HOME/voxforge/bin/julius-4.3.1-linuxbin/bin

Log out and log back in to make your path change effective (use echo $PATH to confirm that your updates worked correctly).

 

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 "julius" 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.

(using the "$echo $PATH" command can help find errors)

Julia

Julia is a high-level, high-performance scripting language for technical computing.

The VoxForge acoustic model creation toolkit is written in Julia.

Step 1 - Download Linux version of Julia

#yum install julia

 

Step 2 - testing

  • Type "julia -v" in terminal window to get the version number of your Julia binary

if your system displays version information for Julia , then it is installed properly;

Audacity

Audacity is a free, easy-to-use, multi-track audio editor and recorder.

Use the following command to download and install Audacity (as superuser):

#yum install audacity 

Click here to download Audacity from its web site.

Comments

AddSearch

By sruti - 3/9/2015 Can you tell me how to solve the problem ?

By vineka - 1/28/2015 I installed cygwin but when tested julian in cygwin editor error "batch julian command not found" how to rectify it?

By manishankar - 1/5/2015 How to slove this issue pls tell me..

By mugdha parande - 10/1/2014 mugdha@ubuntu:~/bin/HTK3.4$ make all (cd HTKLib && make HTKLib.a) \ || case "" in *k*) fail=yes;; *) exit 1;; esac; make[1]: Entering directory `/home/mugdha/bin/HTK3.4/HTKLib' gcc -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="i686"' -Wall -Wno-switch -g -O2 -I. -DPHNALG -c -o HGraf.o HGraf.c HGraf.c:73:77: fatal error: X11/Xlib.h: No such file or directory compilation terminated. make[1]: *** [HGraf.o] Error 1 make[1]: Leaving directory `/home/mugdha/bin/HTK3.4/HTKLib' make: *** [HTKLib/HTKLib.a] Error 1

By surya - 7/24/2014 - 2 Replies hello there, i have installed htk and tested with the command, its working fine..

By gabam - 6/29/2014 - 1 Replies Hi everybody. I am using Fedora 20 32 bit. I exactly the followed what the tutorial says here. And when I enter 'make all', after some seconds of work going on, I finally get this error at the end. What does it mean, and how to get rid of it and make a successfull instalation of HTK. I will really appreciate your help. Thanks.

By helpNeeded - 3/6/2014 - 1 Replies Hi

Hi
By mobline1 - 2/21/2014 Just to Thank you it work propertly

By Moustafa Mahmoud - 1/26/2014 - 1 Replies $cd /HTK

By mervenilay - 1/23/2014 - 3 Replies I followed the steps to install Julian on Windows7 64-bit system. I tested it as shown but it doesn't work. When I type "julian" on Cygwin64 Terminal it doesn't return any result. How to solve this problem?

By Rambod Rahmani - 9/25/2013 - 1 Replies Hi,

By adrian - 9/24/2013 - 1 Replies i get this error. If anyone could help me i would be greatful.

By Corde - 8/29/2013 - 5 Replies First of all i got some problems i using ubuntu 12.04 lts version on wmvare.

By Gustavo - 8/3/2013 The tutorial was very helpful, thanks a lot!

By Rosco - 5/9/2013 Hi,

By tamir - 3/29/2013 - 1 Replies am trying to install cygwin using window 7 but i can't find any sites in the step pls....pls i need help

By Ndekezi - 3/22/2013 - 1 Replies Hey guys , I am installing cygwin but I do not found any site on the list. what should do?

By dunginria - 3/13/2013 - 3 Replies Could you please tell me how to fix this warning 2330?

By novice - 12/14/2012 - 1 Replies after I perform this

By Ali Akbar - 12/4/2012 thank you

By Ali Akbar - 12/2/2012 Thank you so much for guiding me.

By dzungtran32 - 10/23/2012 - 6 Replies Dear all

By stafford - 10/3/2012 Dear all,

By Wei - 9/30/2012

By arua - 8/18/2012 can i install HTK 3.4 on win 7 32 bit without using cygwin.

By Bhupaesh Ghai - 7/5/2012 - 1 Replies I am getting the follwoing at the end of execution of ./configure.

By Mohit - 6/2/2012 - 4 Replies when i run make all command i get following error

By kmaclean - 9/30/2007 - 3 Replies

By rahul - 4/27/2012 - 1 Replies when i am trying to install htk then after

By wmhrae - 9/23/2011 - 1 Replies First run your build script then grabe /tmp/htk/HLMTools/Makefile, on line 77 remove 8 spaces and hit tab, drop file in your build directory and remove and cat it in after configure problem solve ! see part of my build script