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過程相對複雜一些。
----------------------------------
作者:小斤(陳忻)
本文屬於原創文章,如需轉載引用請註明原文作者和連結,謝謝。