HTK on OS X
来源:互联网 发布:霸占大牛股选股软件 编辑:程序博客网 时间:2024/06/05 16:38
On OS X, HTK has its own dependencies which you'll need to install. The process, in four parts are:
- Command Line Tools
- X11
- Downloading and fixing HTK
- Installing HTK
Command line Tools
It is necessary to install a C compiler to install HTK. If you are not sure whether you have a C compiler installed, open the Terminal application and type
gcc -v
If you see -bash: gcc: command not found
, then you need to install the C compiler.
OS X Mavericks (10.9)
In OS X Mavericks (10.9), installation of command line tools has been greatly simplified. If you are running Mavericks, just open the Terminal application and type
xcode-select --install
Just select "Install" in the window which pops open.
OS X Lion and Mountain Lion (10.7 & 10.8)
You need to install command line tools and X11. The here are the steps involved:
- Go to the Mac Dev Center, register (for free) and log in.
- Go to Downloads, and and then View All Downloads.
- Search for "command line tools."
- Download and install the version appropriate for your operating system.
A graphical representation:
1. Register and login
2. Downloads
2. View All Downloads
3 & 4. Search for "command line tools" and download
X11
Go to http://xquartz.macosforge.org/, download XQuartz from there and install it using the installer.
Downloading and Fixing HTK
Download HTK
You'll need to register (free) with HTK to download it. Visit http://htk.eng.cam.ac.uk/register.shtmlto register, and they will e-mail you a password.
After that, visit http://htk.eng.cam.ac.uk/download.shtml, and download the HTK source code under Linux/Unix downloads.
After downloading HTK, unpack the .tar.gz
file, which will unpack into a directory called "htk".
Fixing HTK Source
In the htk directory, navigate to htk>HTKLib, and open the file HRec.c in a plain text editor.
Find the line 1650 which reads
if (dur<=0 && labid != splabid) HError(8522,"LatFromPaths: Align have dur<=0 ");
Note, this is the second instance of this if statement. You can tell that you're changing the right line because this one has a space between 0
and the final quote, while the wrong line has two spaces between Align
and have
. labid
in this line should be changed to labpr
. It should look like this:
if (dur<=0 && labpr != splabid) HError(8522,"LatFromPaths: Align have dur<=0 ");
Installing HTK
Nearly there! Now, open the Terminal application, and navigate to the htk, folder, which is probably in your Downloads.
cd ~/Downloads/htk
Now run the following lines of code
export CPPFLAGS=-I/opt/X11/include./configuremake allsudo make install
You'll be asked to enter your administrative password after that last line of code.
- HTK on OS X
- Compiling HTK 3.4 on Mac OS 10.5
- sem_init on OS X
- OS X x86 on VMWare
- OpenCV on Mac OS X
- OpenGL on Mac OS X
- Macruby on OS X Mavericks
- Compiling GCC on OS X
- Install MongoDB on OS X
- Installing R on OS X
- lomboz eclipse + tomcat 5.5 on OS X
- Driver development on Mac OS X (1)
- Symbian development on Linux and OS X
- subversion 1.6.9 on Mac OS X
- dlopen memory leak on mac os x.
- IE on mac os x(snow leopard)
- Uninstall MySQL on Mac OS X
- Use MySQL on Mac OS X
- 2.Nginx安装
- 欧拉回路&特殊图下的哈密顿回路题集
- 怎样在systemverilog DPI中调用SV,C与C++(一)
- crm2011创建和读取注释
- Cairo 安装要点
- HTK on OS X
- MyEclipse中设置智能提示
- leetcode Distinct Subsequences
- Java中List的用法
- android JNI-SO函数名隐藏
- SQL主键和外键
- nginx基本配置与参数说明
- Ecllipse c配制C99
- NDK-JNI-pthread_kill结束线程