How to install and configure HTK3.4.1 in Windows

Source: Internet
Author: User

1. Download The HTK source code and decompress it. Transport: http://htk.eng.cam.ac.uk/download.shtml (HTK source code)

Ps: You can refer to the htk \ README file in steps 2, 4, and 5.

2. Microsoft Visual Studio is required for compiling HTK. Ensure that VS is installed on the local machine and the environment variable path contains the vcvars32.bat path. (For example, my path is D: \ Program Files (x86) \ Microsoft Visual Studio 10.0 \ VC \ bin)

Method To test successful addition: cmd
> Vcvars32
Display: Setting environment for using Microsoft Visual Studio 2010x86 tools.

Tip: if you add a path similar to D: \ Program Files (x86) \ Microsoft Visual Studio 10.0 \ Common7 \ Tools, run the vsvars32 command.

3. Modify HTKLib \ htkHTKLibhtk_htklib_nt.mkf and change HGraf. null. obj to HGraf_WIN32.obj and HGraf. null. olv to HGraf_WIN32.olv.

Ps: Why do I need to modify it? If this parameter is not modified, an error will occur when you call the HSLab command in HTK in Windows:

  ERROR [+6870]  MakeXGraf: Not compiled with X11 support: use HGraf.X.c FATAL ERROR - Terminating program HSLab

To correct this error, you only need to modify the above two places. In some articles, we have to delete "-lX11" in HTKTools \ Makefile. in. I can fix it if I have not deleted it.

4. Compile HTK. (You can refer to README files, tutorials written by other predecessors, or use the batch processing method I wrote)

View Code

@ Echo offclstitle HTK Installationcolor 0 Aset/p choice = start to compile HTK? [Y ^ | n]: if/I "% choice %" = "y" goto install: endecho press any key to end... & pause> nul exit: installmkdir bin. win32call VCVARS32 bin. win32call cd HTKLibcall nmake/f htk_htklib_nt.mkf allcall cd .. call cd HTKToolscall nmake/f htk_htktools_nt.mkf allcall cd .. call cd HLMLibcall nmake/f htk_hlmlib_nt.mkf allcall cd .. call cd HLMToolscall nmake/f htk_hlmtools_nt.mkf allcall cd .. echo. goto end

Create a file in the htk directory, name it install. bat, paste the above Code, save it, and double-click to run it.
In this step, the htk \ bin.win32 folder will be generated, and the compiled files will be placed in it. Then, .exe is the htk command. The folder should contain the following files: cluster.exe supports HCopy.exe HDMan.exe HERest.exe HHEd.exe HInit.exe HLEd.exe HList.exe HLMCopy.exe supports HMMIRest.exe supports HRest.exe supports HSGen.exe when creating LGCopy.exe LGList.exe when LLink.exe is running LNewMap.exe

5. Set the HTK environment variable. Add the newly generated directory bin. win32 to the environment variable path. (For example, my ID is D: \ program \ htk \ bin. win32)

Method To test successful addition: cmd
> HInit
Display:

USAGE: HInit [options] hmmFile trainFiles... Option                                       Default -e f    Set convergence factor epsilon       1.0E-4 -i N    Set max iterations to N              20 -l s    Set segment label to s               none -m N    Set min segments needed              3 -n      Update hmm (suppress uniform seg)    off -o fn   Store new hmm def in fn (name only)  outDir/srcfn -u mvwt Update m)eans v)ars w)ghts t)rans    mvwt -v f    Set minimum variance to f            1.0E-2 -w f    set mix wt/disc prob floor to f      0.0 -A      Print command line arguments         off -B      Save HMMs/transforms as binary       off -C cf   Set config file to cf                default -D      Display configuration variables      off -F fmt  Set source data format to fmt        as config -G fmt  Set source label format to fmt       as config -H mmf  Load HMM macro file mmf -I mlf  Load master label file mlf -L dir  Set input label (or net) dir         current -M dir  Dir to write HMM macro files         current -S f    Set script file to f                 none -T N    Set trace flags to N                 0 -V      Print version information            off -X ext  Set input label (or net) file ext    lab

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.