參考文章:
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]
===================================================================
說明安裝成功