linux下运行htk,Linux下安装测试HTK

1.安装g++和libx11

命令:

sudo apt-get install g++ gcc

sudo apt-get install libx11-dev

2.解压HTK-3.4.1.tar.gz并安装

命令:

sudo tar xzf HTK-3.4.1.tar.gz

cd htk

sudo ./configure --prefix=/usr/local/

sudo make all

sudo make install

如果要安装HDecode,继续:

sudo make hdecode

sudo make install-hdecode

3.查看生成文件,

命令:

cd /usr/local/bin/

ls

出现:

Cluster HERest HLMCopy HQuant HSmooth LGCopy LNewMap

HBuild HHEd HLRescore HRest HVite LGList LNorm

HCompV HInit HLStats HResults LAdapt LGPrep LPlex

HCopy HLEd HMMIRest HSGen LBuild LLink LSubset

HDMan HList HParse HSLab LFoF LMerge

4.安装测试

命令:Hinit

出现如下信息则安装成功:

chendajun@ubuntu:/usr/local/bin$ HInit

USAGE: HInit [options] hmmFile trainFiles...

Option Default

-e f Set convergence factor epsilon 1.0E-4

-i N Set max iterations to N 20

-l s Set segment label to s none

-m N Set min segments needed 3

-n Update hmm (suppress uniform seg) off

-o fn Store new hmm def in fn (name only) outDir/srcfn

-u mvwt Update m)eans v)ars w)ghts t)rans mvwt

-v f Set minimum variance to f 1.0E-2

-w f set mix wt/disc prob floor to f 0.0

-A Print command line arguments off

-B Save HMMs/transforms as binary off

-C cf Set config file to cf default

-D Display configuration variables off

-F fmt Set source data format to fmt as config

-G fmt Set source label format to fmt as config

-H mmf Load HMM macro file mmf

-I mlf Load master label file mlf

-L dir Set input label (or net) dir current

-M dir Dir to write HMM macro files current

-S f Set script file to f none

-T N Set trace flags to N 0

-V Print version information off

-X ext Set input label (or net) file ext lab

5. DEMO测试

解压HTK-samples-3.4.1.tar.gz

命令:

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

出现如下结果表示安装并测试成功:

0818b9ca8b590ca3270a3433284dd417.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值