Cgywin方式:
见转贴:《在Cgywin上安装HTK 3.4》
可以参考:
http://speech.ee.nthu.edu.tw/index.php?n=Lab.HtkCygwin
打开htk/HTKTools下的Makefile.in,将其中"-lX11"删除
$ cd HTKLib
$ cp HGraf.null.c HGraf.c$ cd..
$ make all
$ make install
使用Vs2005的IDE方式编译HTK Tool:
http://blog.csdn.net/chenxin_130/archive/2009/10/24/4722878.aspx
使用Windows以及Vs环境来编译:
引用自HTK Readme
Prerequisites:
* HTK has been verified to compile using Microsoft Visual Studio.
* For testing, you will require a Perl interpreter such as
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.
运行nmake可能会出现如下错误:
htk_htklib_nt.mkf(6) : fatal error U1035: syntax error : expected‘:’ or ‘=’ separator Stop.
这时,使用utraEdit打开该文件,会提示是否转化为dos格式,选择“是”。然后把打开文件中不必要的空行去掉,然后另存该文件覆盖原来文件。下面再遇到这样的问题用同样的方法解决,试用其他方法都没有能够解决。
通用问题:
HSLab yes01.sig
ERROR [+6870] MakeXGraf: Not compiled with X11 support: use HGraf.X.c
FATAL ERROR - Terminating program HSLab
由于没有Linux图形化界面X11的支持,HSLab无法使用
可选方案:
使用Praat来Recording和Label
http://www.fon.hum.uva.nl/praat/
或者根据网上资料建议,使用HTK3.3,但我未验证可行性,HTK3.3的build过程相对复杂一些。
----------------------------------
作者:小斤(陈忻)
本文属于原创文章,如需转载引用请注明原文作者和链接,谢谢。