ubuntu14.04安装htk 3.5beta最新版

1 篇文章 0 订阅

ubuntu14.04安装htk 3.5beta

HTK是一个用于构建隐马尔可夫模型(HMM)的工具包。隐马模型可用于对任意时间序列建模,与此类似,HTK的核心部分也是具有通用性的。然而,HTK主要还是用于构建基于HMM的语音处理工具,特别是语音识别工具。因此HTK的在基层架构上提供的功能,主要是为了完成这个任务。如上图所示,这个任务主要由两个阶段构成。首先,HTK的训练工具基于语音数据和关联的脚本进行HMM参数的估算,其次,未知的语音数据被HTK的识别工具识别,输出识别结果。[1]
不过遗憾的是随着DNN的出现 ,HMM模型逐渐衰落,HTK更新到3.5Beta之后,就停止更新了。另外这个beta版本也没有在windows上完成测试,所以使用它最好在linux环境下,本文记录在ubuntu14.04如何安装htk。
首先在http://htk.eng.cam.ac.uk/网站注册,然后下载安装包。暂且将source code和decode都下载下来
在这里插入图片描述在shell里运行:
tar -zxvf HTK-3.5.beta-2.tar.gz tar -zxvf HDecode-3.5.beta-1.tar.gz
解压缩,你会看到在目录里多出来htk目录,进入目录,打开README

If you are also building HDecode (available from the HTK website, under a
different licence from HTK), you will firstly need to unpack the HDecode
source code (in the same directory in which you unpacked the HTK
sources). Then follow the steps above for first building HTK, and then execute 
the following command in HTKLVRec directory:

1. make -f MakefileCPU all
2. make -f MakefileCPU install

or

1. make -f MakefileMKL all
2. make -f MakefileMKL install

or

1. make -f MakefileNVCC all
2. make -f MakefileNVCC install

depending on whether HTK is compiled for CPU, CPU with MKL support or GPU.


Compiling & Installing HTK under Windows
========================================
HTK 3.5 has not yet been tested under Windows. 


Testing the Installation
========================
As an initial test of the installation please run the HTK demonstration 
using the configuration file samples/HTKDemo/configs/monPlainM1S1.dcf. 
There is a README file in the samples/HTKDemo directory that explains 
the operation of the demonstration in detail but, in short, you need 
to run the demonstration script passing it the configuration file 
samples/HTKDemo/configs/monPlainM1S1.dcf as input. 
To test the language modelling tools you should follow the tutorial
in the HTK book, using the files in the LMTutorial/ directory.

In addition to basic testing of the HTK installation, it is also possible 
to build several HTK systems for the Resource Management (RM) task. 
These systems range in complexity from simpler Gaussian mixture model 
based HMMs to more complex artificial neural network based systems. 
The RM recipe is located in samples/RMHTK directory and is documented 

进入子目录就会看到对应的makefile文件,按照提示来安装即可,需要注意的是需要先安装LIB目录,然后再安装其他目录,否则会提示错误。我用CPU的makefile编译,编译完毕之后,在htk目录下会生成一个bin.cpu的子目录,所有在htkbook里罗列的工具都会安装到这个目录。

在这里插入图片描述
安装完,也可以按照README看一下是否可以正常运行。
在这里插入图片描述好像windows用户需要手动建立目录:
cd HTKDemo
mkdir hmms
cd hmms
mkdir tmp
mkdir hmm.0
mkdir hmm.1
mkdir hmm.2
mkdir hmm.3
cd …
mkdir proto
mkdir acc
mkdir test
另外就是需要将工具的运行目录加到环境变量中,临时的办法如下:
export PATH=$PATH:$HOME/devpath/HTK\ Resources/htk/bin.cp

参考文献

[1] htk book 中文版

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值