Sunday, February 24, 2013

SailAlign: Speech-Text Alignment


SailAlign is a robust long speech-text alignment developed by Nassos Katsamanis. See http://sail.usc.edu/old/software/SailAlign/ for more detail.


To compile SailAlign, you need a linux environment with HTK installation. Here, I will show how to config SailAlign in Fedora 15 step by step.

1) Intall HTK and HDecode
Firstly, due to licence limit, you need to register yourself here before the download.

unzip them into a single folder.

For Fedora 15, you have to install other two software for two missing head files, by runing the following commands. (Assuming a 64 bits platform)
$ sudo yum install glibc-devel.i686
$ sudo yum install libX11-devel.i686

Then, you can run commands below to config the install
$ ./configure --enable-trad-htk --prefix /home/wencan/htk 
(Please change the path to your own directory)

After that, you have to change the HLMTools\Makefile to fix a bug, Line 77, replace the blank with a tab
(Fixing the error "Makefile:77: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.")
Then, run command below to install the HTK.
$ make all
$ make install

HDecode:
$make hdecode install-hdecode

To test HTK, go into the samples folder and run commands below:
$ mkdir accs hmms hmm.0 hmm.1 hmm.2 hmm.3 tmp proto test
$ cd HTKDemo
$ ./runDemo configs/monPlainM1S3.dcf

If you have error, you should add the HTK bin path into your $PATH by
$ export $PATH=$PATH:/home/wencan/htk/bin.linux (replace the htk path to your own)

2) Install SailAlign

Before the installation, you should install libstdc++.so first in order to fix the error message below
"error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory"
To do it, download the package libstdc++6-4.7.3_2012.10-3.1-mdv2012.0.x86_64.rpm and run
Then, following the steps:
$ cpan Module::Build
$ perl Build.PL
# ./Build installdeps
$ ./Build
$ sudo ./Build install

To test SailAlign, run 
$sail_align -i support/data/timit_5.wav -t support/data/timit_5.txt -w support/data/test/timit_sample_test -e timit_sample_test -c config/timit_alignment.cfg

No comments:

Post a Comment