一、HTK 的下载地址(需要注册)
http://htk.eng.cam.ac.uk/download.shtml
还有HTK 手册什么的
二、需要的两个库:
1. sudoapt-getinstalllibx11-dev:i386
2.sudoapt-getinstalllibc6-dev:i386
三、安装HTK
1. 安装命令
tar xzf HTK-3.4.1.tar.gz
cd htk
./configure --prefix=/usr/local
make all
sudo make install
四、安装HDecode
1.需要额外安装一个HDencode,这个包的下载地址为
http://htk.eng.cam.ac.uk/ftp/software/hdecode/HDecode-3.4.1.tar.gz
使用tar解压可以看到内部内容实际上是htk目录下的一部分
把它拷到对应的目录下
即可在HTK目录下继续执行
make hdecode
make install –hdecode
五、测试
下载HTK-samples-3.4.1.tar.gz
解压得到samples文件夹
进入samples\HTKDemo\
执行
- mkdirhmms
- mkdirhmms/{tmp,hmm.{0,1,2,3}}protoacctest
- ./runDemo./configs/monPlainM1S1.dcf
- ======================HTKResultsAnalysis=======================
- Date:ThuJun1822:43:112015
- Ref:labels/bcplabs/mon
- Rec:test/te1.rec
- :test/te2.rec
- :test/te3.rec
- ------------------------OverallResults--------------------------
- 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]
- ===================================================================
2. 测试可能遇到的问题
Can't open proto at ./MakeProtoHMMSetline101,<> line 21.
Can't open hmms/hmm.0
Can't open hmms/hmm.1
Can't open hmms/hmm.2
cp: target ‘hmms/tmp’ is not a directory
Can't open test
解决方法需要自己建立这些目录
mkdir proto
mkdir hmms
mkdir hmms/hmm.0
mkdir hmms/hmm.1
mkdir hmms/hmm.2
mkdir test
Reference:
1. http://blog.csdn.net/joey_su/article/details/9620775
2. http://blog.csdn.net/tang20120235/article/details/46551853
3. https://www.2cto.com/kf/201611/568835.html
原文链接:https://www.f2er.com/ubuntu/350814.html