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:



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 

get most current version of HTK source code and htkbook (currently HTK v3.5)

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


  • use tar from the command line for the following file:
    • tar -xvzf HTK-3.5-beta-2.tar.gz

this should create the following directory in your bin folder:

  • voxforge/bin/htk


Step 4 - Compile & Install HTK

from the HTK README instructions:

Each of the following directories has its own makefile:  HTKLib, HLMLib, HTKTools, HLMTools

run make in each of the above directories in order:

$ make -f MakefileCPU all

next run make install in each directory in order:

$ make -f MakefileCPU install

the HTK tools will be installed in bin.cpu



Step 5 - testing

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


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)


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)


  • 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.cpu
  • /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

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 is a 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 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.


By chakikou - 5/1/2018 Hello,

By SushaNt - 8/3/2017 - 1 Replies #yum install compat-gcc-34-c++ compat-gcc-34 gives error There are no enabled repos. Run "yum repolist all" to see the repos you have. You can enable repos with yum-config-manager --enable <repo>

By Biruk Gebru - 12/24/2016 Hi all I registered here to say thank you, I got this page very important for my NLP projec

By diwakarg - 11/29/2016 - 1 Replies sitecsp@acl-pg-06:~/HTK/htk$ make all

By God - 1/20/2016 Put HTKTools into your linux path using:

By Tom Brunner - 1/14/2016 - 5 Replies Hi,

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 - 3 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

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