HTK 安装

参考文章:
1:
http://blog.csdn.net/tang20120235/article/details/46551853
2:
http://www.voxforge.org/home/dev/acousticmodels/linux/create/htkjulius/tutorial/download/comments/htk-comple-error

HTK 的下载地址(需要注册)
http://htk.eng.cam.ac.uk/download.shtml

cd HTK_directory  
tar -xf HTK-3.4.1.tar.gz -C your_destination_directory

出现错误 cdefs

/usr/include/features.h:374:25: fatal error: sys/cdefs.h: 没有那个文件或目录

安装

sudo apt-get install libc6-dev  
sudo apt-get install libc6-dev:i386  

出现错误 lX11

/usr/bin/ld: cannot find -lX11  
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/libgcc.a when searching for -lgcc  
/usr/bin/ld: cannot find -lgcc  
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/libgcc_s.so when searching for -lgcc_s  
/usr/bin/ld: cannot find -lgcc_s  

安装

sudo apt-get install libx11-dev:i386

如果没有用

sudo ./configure之后,
执行

for mf in `find -type f -name Makefile -exec egrep -q '[-]m[0-9]' {} \; -print`; do echo $mf; sed -i.bak '/\W-m32 /{h;s/^/#/p;g;s/-m32 //}' $mf; done

make all
sudo make install

即可

然后进行测试

下载HTK-samples-3.4.1.tar.gz
解压得到samples文件夹
进入samples\HTKDemo
执行

mkdir hmms  
mkdir hmms/{tmp,hmm.{0,1,2,3}} proto acc test  
./runDemo ./configs/monPlainM1S1.dcf 

如果最后几行出现


====================== HTK Results Analysis =======================  
 Date: Thu Jun 18 22:43:11 2015  
 Ref : labels/bcplabs/mon  
 Rec : test/te1.rec  
     : test/te2.rec  
     : test/te3.rec  
------------------------ Overall Results --------------------------  
SENT: %Correct=0.00 [H=0, S=3, N=3]  
WORD: %Corr=63.91, Acc=59.40 [H=85, D=35, S=13, I=6, N=133]  
=================================================================== 

说明安装成功

你可能感兴趣的:(HTK 安装)