Windows下安裝HTK3.4總結

來源:互聯網
上載者:User

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過程相對複雜一些。

 

----------------------------------

作者:小斤(陳忻)

本文屬於原創文章,如需轉載引用請註明原文作者和連結,謝謝。

       

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.