转自:http://blog.sina.com.cn/s/blog_87862d6a01012i9n.html
1,下载HTK的linux版本。
方法一:google一下HTK,然后官网注册个用户名,下载HTK-3.4.1.tar.gz 和 HTK-samples-3.4.1.tar.gz
方法二:去csdn下载,别人已经从官网下载好了
http://download.csdn.net/source/1698616
2,安装X11
$ sudo apt-get install libx11-dev
3,安装HTK
> tar xzf HTK-3.4.1.tar.gz
> cd htk
> sudo ./configure --prefix=/tmp
> sudo make all
> sudo make install
> ls /tmp/bin
4,设置路径
> PATH="$PATH:/tmp/bin:."
> export PATH
> $PATH (查看一下)
5,测试HTK
> tar xzf HTK-samples-3.4.1.tar.gz
> cd samples
> cd HTKDemo
> mkdir -p hmms/{tmp,hmm.{0,1,2,3}} proto acc test
> perl runDemo configs/monPlainM1S1.dcf
出现下面结果,测试成功
------------------------ 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]
==================================================
注:网上还有一种方法,说是先删改sources.list文件,本人亲自试了,不行!