昨天晚上滑雪回来之后也不想干别的事情了,就想着HTK的问题。

在网上找了一些教程和资料,也就开始装了起来,但是却发现还是碰到了许多的问题。

在用UE打开readme文件后发现了一些相关的说明,如下所示:

Compiling & Installing HTK under Windows
========================================
Prerequisites:
    * HTK has been verified to compile using Microsoft Visual Studio.                          //  
    * For testing, you will require a Perl interpreter such as                                       //需要安装ActicePerl解释器
      ActivePerl. 
    * You will need a tool such as 7-zip or winzip (commercial) for unpacking
      the HTK source code archive.
    * It is helpful if you have some familiarity with using the DOS
      command line interface, as you will need to interact with it in
      order to compile, install and run HTK.
    * Ensure that your PATH contains                                                                     //路径里面要包含如下的路径
      C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin
      Or if you are using older versions:
      C:\Program Files\Microsoft Visual Studio\VC98\bin

Compilation:                                                                                                     //安装过程
   1. Unpack the HTK sources using 7-zip.
   2. Open a DOS command window: Click Start, select Run type cmd at
      the prompt and click OK.
   3. cd into the directory in which you unpacked the sources.
   4. cd into the htk directory. Type:

cd htk

5. Create a directory for the library and tools. Type:

mkdir bin.win32

6. Run VCVARS32 (it should be in your path, see prerequisites above)
   7. Build the HTK Library, which provides the common functionality
      used by the HTK Tools. Enter the following commands:

cd HTKLib
   nmake /f htk_htklib_nt.mkf all
   cd ..

8. Build the HTK Tools

cd HTKTools
   nmake /f htk_htktools_nt.mkf all
   cd ..
   cd HLMLib
   nmake /f htk_hlmlib_nt.mkf all
   cd ..
   cd HLMTools
   nmake /f htk_hlmtools_nt.mkf all
   cd ..

Installation:
The HTK tools have now been built and are in the bin.win32
directory. You should add this directory to your PATH, so that you can
run them easily from the command line in future.

Testing the Installation                                                                                          //测试
========================

Among the samples on the HTK website you'll find the HTKDemo package
that can be used to test your installation. See
http://htk.eng.cam.ac.uk/download.shtml for download instructions.

As an initial test of the installation please run the HTK
demonstration using the configuration file
HTKDemo/configs/monPlainM1S1.dcf. There is a README file in the                 //在readme文件中会讲到该测试例子的详细细节
HTKDemo directory explaining the operation of the demonstration in
detail but, in short, you need to run the demonstration script passing
it the configuration file 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.

Before running the demo make sure you have compiled all the HTK tools
and the executables are in your PATH, i.e. just typing 'HInit' at the
commandline prints a short usage summary. To run the demonstration
type:

$ cd HTKDemo
$ ./runDemo configs/monPlainM1S1.dcf

其实在readme文件中已经讲到了具体的install的方法了。耐心的看看英文就应该能明白。http://cqusuperyang.blog.163.com/blog/static/3416516020111022372230/这里面是一个按照此步骤进行的一个install的教程,而ActivePerl的下载文件可以在爱问上下载http://ishare.iask.sina.com.cn/f/23602373.html这里可以免费进行下载。

还有在进行测试的时候会出现的问题是

1.must be in derectory HTKDemo to run this script  这个问题纠结了我半天。后来在网上找了一些前人的经验,具体可以看测试中的用到的pl文件,用ultraedit打开,在里面会有这一行语句

($get_dir =~ "HTKDEMO") || die "Must be in directory HTKDemo to run this script\n";

前人的方法是直接删掉这一句(具体的我不知道对不对),经验证,可以通过。

2.不能打开文件的错误。cannot open ??? file

需要在HTKDemo文件夹下建立test, proto,hmms 三个文件夹,并在hmms文件夹中建立三个子文件夹hmm.0,hmm.1,hmm.2

之后再运行README中的命令

测试例子通过。

最后推荐大家用google,不用搜狗和百度。google作为搜索引擎的能力比下面的两个要好很多,也更人性化(已经经过多次验证)。

转载于:https://www.cnblogs.com/zxqwolf/archive/2013/01/14/2859686.html

HTK在win7下安装的一些问题相关推荐

  1. win7下安装dynamips完全版

    因为学CCNA,所以要搭建一个dynamips的模拟器.搞了好几天啊,原因是在win7下安装的,在网上找了很多的资料,又联系了一个工大瑞普的学员,都不能真正的解决这个问题,经过自己长时间的努力,与不抛 ...

  2. win7下安装rose

    在此分享一下破解rose2003成功的喜悦,在网上查了很多方法,方法都大同小异啦,但是都不够详尽,在此,我将详细的过程及贴图总结在此,供大家分享:  1.当然是安装rose2003了,在提示选择安装项 ...

  3. WIN7 下安装 SQL Server 2000 兼容性问题

    最近遇到一些系统需要sql 2000的环境下部署,系统安装手册中的要求是这样的: 操作系统:服务器windows 2003 32位/windows 2007 32 位 操作系统:客户端windows ...

  4. 1.4 VC6.0在win7下安装的兼容性问题以及解决办法

    源自网络 1.1       编译出错 在 Win7 下安装的 Vc 6.0,很多人碰到的第一个问题就是,代码没错但编译总出错,就是不知道哪出问题了.嘿嘿,其实正是兼容性在作怪. 下面给出我在网上查到 ...

  5. win7下安装IIS7.0及部署VS2010 ASP.NET程序网站的相关问题

    win7下安装IIS7.0及部署VS2010 ASP.NET程序网站的相关问题  配置环境 操作系统:microsoft  windows 7 服务平台:.net4.0 开发工具:microsoft  ...

  6. oracle 安装找不到服务,win7 下安装oracle 11g出现错误: 启动服务出现错误 找不到服务OracleMTSRecoveryService...

    这种错误是在多次安装oracle都没有成功的情况下发生的. 正确安装oracle,是有前提条件的 1,安装最新的jdk,不是jre!!(并配好环境变量,在cmd中测试 java -version与ja ...

  7. win7 下安装oracle 10g

    oracle 10g 在win7下安装,提示程序异常终止,发生未知错误 在网上搜结果: 修改Oracle 10G\database\stage\prereq\db\refhost.xml 在 < ...

  8. ​win7下安装sourcetree

    2019独角兽企业重金招聘Python工程师标准>>> win7下安装sourcetree 标签: gitsourcetree 2015-08-29 10:18 1147人阅读 评论 ...

  9. win7下安装usb转串口不成功解决方法

    如果在win7下安装后提示INF安装错误,可能是执行程序安装位置不对,可以用搜索功能将下面文件手动复制到指定目录下就可以了: 1.搜索下面三个文件(先运行安装程序) ser2pl.cat  11,08 ...

  10. 联想v360安装linux双系统,联想V360在WIN7下安装XP双系统完美运行攻略.doc

    联想V360在WIN7下安装XP双系统完美运行攻略 前言入手小V已2月有余,很喜欢小V的做工和便携还有window7系统华丽的界面,但对用习惯了XP系统的我来说,一直很纠结,小V到底能否安装双系统,安 ...

最新文章

  1. 建立循环单链表(头插法)
  2. 模拟电路技术之基础知识(一)
  3. 解决开机自检D盘问题
  4. java list 拆分_Java面试题怎么确保一个集合不能被修改?
  5. 小学生计算机辅助教学系统--练习加,减,乘,除法
  6. 把a文件删除b文件中的相同的行
  7. 设置 cookie过期时间
  8. html数据插入到数据库,将数据插入到数据库中:text和html格式
  9. html怎么设置动画保持,html – 如何使用CSS3为td列可见性设置动画
  10. mac os虚拟机镜像_为旧型Mac电脑配置支持OS 9的网络启动
  11. 高可用集群实验一:lvs的NAT模式、DR模式搭建及性能对比
  12. 佳能gm4080无线服务器安装,佳能GM4080驱动
  13. 【数据结构】天勤 例2-3 (单链表归并操作)二、递减
  14. 扫描隧道显微镜STM功能介绍及用途
  15. Python多线程爬虫获取电影下载链接
  16. DITHER 抖动算法(转载)
  17. Leetcode——唯唯诺诺对并查集的初次相见
  18. 理解HTML HTTP API 和URL
  19. 小括号在c语言的作用,C语言的小括号----其实是逗号运算符
  20. (十一)openstack------块存储服务cinder,磁盘(卷)扩容,使用 NFS---后端存储

热门文章

  1. 十大排序算法——二分插入排序法(C语言)
  2. linux进程号转换成16进制,linux-shell 脚本转换 十六进制 十进制 八进制 二进制
  3. python提供了什么函数进行格式化输出_python print函数格式化输出
  4. Step By Step(1),Build Convolutional Neural Networks
  5. 图像特征的匹配-OpenCV3.0
  6. 算法:插入排序、归并排序、快速排序、堆排序
  7. 2021-08-30二叉树后向遍历 leetcode 栈
  8. 542. 01 矩阵
  9. python的符号lt和gt怎么输入_lt;lt;Python基础教程gt;gt;学习笔记 | 第04章 | 字典...
  10. 转置卷积 反卷积 PyTorch torch.nn.ConvTranspose2d() output_padding