installing htk on cygwin · suggest list - 1! archive! unzip : decompressing *.zip! zip :...

24
Installing HTK on Cygwin Chao-yu Huang 2010.04.27

Upload: others

Post on 25-Aug-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Installing HTK on Cygwin

Chao-yu Huang

2010.04.27

Page 2: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Setup Cygwin

Page 3: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Cygwin

n What Is Cygwin?

n Cygwin is a Linux-like environment for Windows

n What Isn't Cygwin?

n Cygwin is not a way to run native linux apps on Windows.

n Cygwin is not a way to magically make native Windows apps aware of UNIX ® functionality, like signals, ptys, etc.

Page 4: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Download & Run

n http://www.cygwin.com/setup.exe

Page 5: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Then...n Choose A Download Source

n Install from Internet

n Select Root Install Directory

n C:\cygwin

n Select Local Package Directory

n C:\tmp

n Yes

n Select Your Internet Connection

n Direct Connection

Page 6: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Download Site

Page 7: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Skip Alert

Page 8: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Select Packages

Page 9: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Suggest List - 1n Archive

n unzip : decompressing *.zip

n zip : compressing *.zip

n Devel

n ctags : help you create tag file to trace code

n gcc : c and c++ compiler

n make : as important as gcc

Page 10: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Suggest List - 2n Editors

n vim : I prefer vim, but you can use any editor you like

n Net

n openssh : when you want copy files from workstation to your local system, scp, sftp is usefull commands

n Perl

n perl : powerful string and hash library

n perl_manpages : man pages for perl

Page 11: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Suggest List - 3n Shell

n tcsh : default shell in cygwin is bash, but SRILM will use csh

n Web

n wget : when you want download files from internet to your current directory, this is useful

Page 12: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

How to use linux cmds?

n Google !

n Man is your best friend!!

n / to search and to quit

n 鳥哥的 Linux 私房菜 http://linux.vbird.org/

Page 13: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Waiting for Installing...

Page 14: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Foldersn Root:

n C:\cygwin

n Execute files:

n C:\cygwin\bin

n Home:

n If your win login name is “hamigwa”

n C:\cygwin\home\hamigwa

Page 15: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Window Size

Page 16: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Copy & Paste

n Copy

n click 標記

n Select text sections

n mouse right click

n Paste

n click 貼上

Page 17: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Vimn You could use

n or use VIM !!

n Download .vimrc

n http://edt1023.sayya.org/vim/node1.html

n

Page 18: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

HTK

Page 19: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Installing HTK - 1n Copy binary(*.exe) files to C:\cygwin\bin

n From : htk341_win32.zip

Page 20: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Installing HTK - 2

n Or Compile it yourself!!

n Unzip files

n unzip HTK-3.4.1.zip

n unzip HDecode-3.4.1.zip

n Move folder htk to

n C:\cygwin\tmp

Page 21: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Compiling HTK - 1n cd /tmp/htk

n edit ./HTKTools/Makefile.in

n From

n To

n cp ./HTKLib/HGraf.c ./HTKLib/HGraf.c.copy

n cp ./HTKLib/HGraf.null.c ./HTKLib/HGraf.c

Page 22: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Compiling HTK - 2

n ./configure --prefix=/usr

n make all

n make install

n make hdecode

n make install-hdecode

Page 23: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Testing

Page 24: Installing HTK on Cygwin · Suggest List - 1! Archive! unzip : decompressing *.zip! zip : compressing *.zip Devel! ctags : help you create tag Þle to trace code! gcc : c and c++

Question?