How to run HTKDemo in Windows: how to install and configure HTK3.4.1 in Windows

Source: Internet
Author: User
Tags perl script

HTKDemo is not only a Demo, but also a simple test program used to check whether the HTK has been installed. Make sure that the HTK has been installed and configured. For more information, see the installation and configuration of HTK3.4.1 in Windows.

1. Download HTK samples and decompress it. Transport: http://htk.eng.cam.ac.uk/download.shtml

PS: For more information about steps 2, 3, and 4, see samples \ HTKDemo \ README.

2. Download and install ActivePerl (Perl script is required to run the Demo ). Transport: http://www.activestate.com/activeperl/downloads

3. Add the temporary directory required by HTKDemo: acc hmms \ hmm.0 hmms \ hmm.1 hmms \ hmm.2 hmms \ hmm.3 hmms \ tmp proto test

Or, if you do not want to manually add it, you can use my batch processing command to create it: Create a notepad in samples \ HTKDemo \ and change it to install. bat, copy and paste the following code, and double-click "1" and press enter to exit.

View Code

@ Echo offclstitle Prefer Dirs for Demo Program: menucolor 0 Aecho ============================== echo select the operation to perform, then press ENTER echo ============================== echo. echo 1. create a temporary directory echo 2. delete the temporary directory echo 3. recreate the temporary directory echo Q. exit: choecho. set/p choice = select: if/I "% choice %" = "1" call: p1 & call: rvif/I "% choice %" = "2" call: p2 & call: rvif/I "% choice %" = "3" (call: p2 & call: p1) & call: rvif/I "% choice %" = "Q" goto: EOFclsecho the selection is invalid. Please input echo again. goto menu: p1call: create acccall: create hmmscall: create hmms \ hmm1_call: create hmms \ hmm.1call: create hmms \ hmm.2call: create hmms \ hmm.3call: create hmms \ tmpcall: create protocall: create testgoto: eof: p2call: delete acccall: delete hmmscall: delete protocall: delete testgoto: eof: createif exist % 1 (echo % 1 already exists) else (mkdir % 1 & echo % 1 created successfully) goto: eof: deleteif exist % 1 (rd/s/q % 1 & echo % 1 deleted successfully) else (echo % 1 Folder does not exist) goto: eof: rvset choice = "" goto: cho

4. runDemo.
Cmd to samples \ HTKDemo \ and then enter the command> runDemo. pl configs/monPlainM1S3. dcf. If the following information is displayed, the HTKDemo runs successfully and the HTK configuration is correct.

.......HTK Configuration Parameters[4]  Module/Tool     Parameter                  Value#                 BINARYACCFORMAT             FALSE                  KEEPDISTINCT               FALSE                  SAVEGLOBOPTS                TRUE                  TARGETKIND              MFCC_E_DHResults -A -s -L labels\bcplabs\mon lists\bcplist recout.mlf====================== HTK Results Analysis =======================  Date: Sat May 05 13:21:25 2012  Ref : labels/bcplabs/mon  Rec : recout.mlf------------------------ Overall Results --------------------------SENT: %Correct=0.00 [H=0, S=3, N=3]WORD: %Corr=63.91, Acc=59.40 [H=85, D=35, S=13, I=6, N=133]===================================================================D:\program\htk\samples\HTKDemo>

This information is used to simulate the HTK training and recognition process and display the final recognition result. Learn more in the future.

5. Test the recording and marking procedures. If you want to use HSLab for recording and tagging, first correct the HSLab compilation problem in Windows according to the step 3 Modification Method in the installation configuration explanation of HTK3.4.1 in Windows.
Create a Temporary Folder temp, cmd .. \ temp \, enter the command> HSLab name. sig. Press enter to display the recording marking window (for example,), which indicates OK. For the usage examples, see the following section.

Related Article

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.