Installing HTK on Cygwin - National Taiwan...
-
Upload
nguyenhanh -
Category
Documents
-
view
247 -
download
2
Transcript of Installing HTK on Cygwin - National Taiwan...
![Page 1: Installing HTK on Cygwin - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/1.jpg)
Installing HTK on Cygwin
Chao-yu Huang
2010.04.27
![Page 2: Installing HTK on Cygwin - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/2.jpg)
Setup Cygwin
![Page 3: Installing HTK on Cygwin - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/3.jpg)
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 - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/4.jpg)
Download & Run
n http://www.cygwin.com/setup.exe
![Page 5: Installing HTK on Cygwin - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/5.jpg)
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 - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/6.jpg)
Download Site
![Page 7: Installing HTK on Cygwin - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/7.jpg)
Skip Alert
![Page 8: Installing HTK on Cygwin - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/8.jpg)
Select Packages
![Page 9: Installing HTK on Cygwin - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/9.jpg)
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 - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/10.jpg)
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 - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/11.jpg)
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 - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/12.jpg)
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 - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/13.jpg)
Waiting for Installing...
![Page 14: Installing HTK on Cygwin - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/14.jpg)
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 - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/15.jpg)
Window Size
![Page 16: Installing HTK on Cygwin - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/16.jpg)
Copy & Paste
n Copy
n click 標記
n Select text sections
n mouse right click
n Paste
n click 貼上
![Page 17: Installing HTK on Cygwin - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/17.jpg)
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 - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/18.jpg)
HTK
![Page 19: Installing HTK on Cygwin - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/19.jpg)
Installing HTK - 1n Copy binary(*.exe) files to C:\cygwin\bin
n From : htk341_win32.zip
![Page 20: Installing HTK on Cygwin - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/20.jpg)
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 - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/21.jpg)
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 - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/22.jpg)
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 - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/23.jpg)
Testing
![Page 24: Installing HTK on Cygwin - National Taiwan Universityspeech.ee.ntu.edu.tw/homework/DSP_HW2-1/HowToInstallHTKonCyg… · Cygwin! What Is Cygwin?! Cygwin is a Linux-like environment](https://reader030.fdocuments.us/reader030/viewer/2022021416/5ab2c54c7f8b9abc2f8e06a8/html5/thumbnails/24.jpg)
Question?