VoxForge
1. Open a Linux terminal, create voxforge directory in your home directory
$mkdir voxforge
$cd voxforge
$mkdir bin
this creates the following folder path:
/home/username/voxforge/bin
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.
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):
click the following links:
and save them to your new bin directory.
Extract the files using:
-or-
this should create the following directory in your bin folder:
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 |
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)
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
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
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' |
you need to fix a minor bug in an HTK Makefile
$ gedit /home/username/voxforge/bin/htk/HLMTools/Makefile
|
mkinstalldir: |
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.
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.
click the following link:
-or-
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.
Extract the file using:
-or-
this should create a julius-4.3.1 directory in your bin folder.
See testing in the 'Update Your User Path' section.
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:
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).
if your system lists all the options available to the hvite command, then HTK is installed properly.
if your system displays version information for Julius, then Julius is installed properly;
(using the "$echo $PATH" command can help find errors)
Julia is a high-level, high-performance scripting language for technical computing.
The VoxForge acoustic model creation toolkit is written in Julia.
|
#yum install julia |
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 |