Download HTK 3.2.1 & SoX

This Tutorial assumes you have already installed Cygwin, HTK-3.3 and Julius - if not, see this link.

Download HTK  3.2.1

You need to use HTK release 3.2.1 because there are problems with Acoustic Model Adaptation using HTK release 3.3 (see Ticket #41 for details).

Step 1 - Register with HTK 

Step 2 - Download HTK Toolkit

  • Click this link:
HTK version 3.2.1 windows binary release (zip archive)
  • Select 'Save to Disk' in the pop-up window and save the file to your cygwin home directory:
 c:\cygwin\home\yourhomedirectory
(see the Cygwin Cheat Sheet for information on Cygwin directory structures).   

Step 3 - Install HTK

Install Windows HTK Binaries 

Using Windows Explorer (you could use the Cygwin Console, but it is easier to use Windows Explorer - see the Cygwin Cheat Sheet):
  • Right-click the htk-3.2.1-windows-binary.zip file, and select 'Extract All...' from your right-click menu; and
  • follow the steps in the extraction wizard to extract the zip file to:
 c:\cygwin\bin
  • This will create a new directory called:
  c:\cygwin\bin\htk-3.2.1
which will contain the HTK executables.  

Don't Update Your Cygwin Path

You should not update your cygwin path to include HTK 3.2.1 binaries or libraries - this may cause conflicts with your currently installed copy of HTK3.3.

 

Download SoX

Step 1 - Download SoX sound processing utility

  • Click this link:
sox-win
and follow the SourceForge instructions to download the Windows version of SoX. 
  • Select 'Save to Disk' in the pop-up window and save the file to your cygwin home directory:
 c:\cygwin\home\yourhomedirectory
(see the Cygwin Cheat Sheet for information on Cygwin directory structures). 

Step 2 - Install SoX

Using Windows Explorer (you could use the Cygwin Console, but it is easier to use Windows Explorer - see Cygwin Cheat Sheet):

  • Right-click the sox12xxx.zip file, and select 'Extract All...' from your right-click menu; and
  • follow the steps in the extraction wizard to extract the zip file to:
 c:\cygwin\bin
  • This will create a new directory called:
  c:\cygwin\bin\sox1282\sox1282
which will contain the SoX executables. 

Update Cygwin Path

Step 1 - Update your path environment variable to include SoX

1. from Windows Explorer, use your favourite editor to edit:

c:/cygwin/etc/bash.bashrc

and add the following lines to the end of the file:    

PATH=/sox12182/sox12182:$PATH
export PATH

2. close any open Cygwin consoles for the change to take effect
 

Step 2 - Testing Your SoX Install

  • Open a Cygwin Console window:
    • Click Start>All Programs>Cygwin>Cygwyn Bash Shell;
  • Type in "sox" in the Cygwin Console;
if your system lists all the options available to the sox command, then sox is installed properly.
  • If you don't see the expected results, review your installation steps for SoX to determine where you might have made an error.