Top Diff List Farm Source Search Help RSS Login

HARK Installation Instructions

Softwares > HARK (Main Page) > HARK Installation Instructions

HARK Installation Instructions

 Installation from Pre-compiled Binaries


Compilation Environment


  • OS
    • Ubuntu 14.04 trusty (64bit)
    • Ubuntu 16.04 xenial (64bit)

For other environments, please go for the source compilation.

The pre-compiled binaries for lucid are supported up to HARK version 1.1.0.
To use HARK later than version 1.1.0 in lucid, go for the source compilation.

Installation


Register HARK apt repository to install HARK deb packages.

  • Ubuntu 14.04 (Trusty) or Ubuntu 16.04 (Xenial)
sudo bash -c 'echo -e "deb http://archive.hark.jp/harkrepos $(lsb_release -cs) non-free\ndeb-src http://archive.hark.jp/harkrepos $(lsb_release -cs) non-free" > /etc/apt/sources.list.d/hark.list'

Setup the GPG key.

wget -q -O - http://archive.hark.jp/harkrepos/public.gpg | sudo apt-key add -

node.js installation

  • Ubuntu 14.04 (Trusty) or Ubuntu 16.04 (Xenial)
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs

HARK server re-indexing.

sudo apt-get update

HARK installation.

sudo apt-get install harkfd hark-designer
sudo apt-get install julius-4.2.3-hark-plugin
sudo apt-get install harktool4
sudo apt-get install harktool5
sudo apt-get install kaldidecoder-hark

Audio device library trouble shooting
If the following command
dpkg -l | grep rasp

shows nothing, the library for RASP is not installed.
You can install the library by the following command:

sudo apt-get install librasp-netapi

If you want to use TD-BD-16ADUSB, please go here for the installation instruction.

Past releases

If you install HARK 2.2.0 or earlier packages, register the following apt repository.

  • Ubuntu 12.04 (Precise)
sudo bash -c 'echo -e "deb http://archive.hark.jp/harkoldrepos precise non-free\ndeb-src http://archive.hark.jp/harkoldrepos precise non-free" > /etc/apt/sources.list.d/harkold.list'
  • Ubuntu 14.04 (Trusty)
sudo bash -c 'echo -e "deb http://archive.hark.jp/harkoldrepos trusty non-free\ndeb-src http://archive.hark.jp/harkoldrepos trusty non-free" > /etc/apt/sources.list.d/harkold.list'

 Installation from Source Compilation

Installation of HARK from source.
Source compilation supports Ubuntu 12.04 or later.
Following packages are needed to be installed:

  1. harkfd
  2. flowdesigner-0.9.1-hark
  3. julius-4.2.3-hark-plugin
  4. libharkio3
  5. harktool4
  6. harktool5-cui

To compile these packages, "libtool" is required.

Step1 : Preparation before the compilation

Make your preferred directory to download source codes.

mkdir ${HOME}/YOUR_HARK_DOWNLOAD_DIR

Install dependent packages.

sudo apt-get install libtool libgnomeui-dev libxml++2.6-dev libxml2-dev libasound2-dev libboost-dev libboost-regex-dev libboost-thread-dev libboost-program-options-dev libboost-filesystem-dev libsndfile1-dev

Step2 : flowdesigner-0.9.1-hark installation instruction

Move to your preferred directory.

cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

Download the latest flowdesigner-0.9.1-hark_*.*.*.tar.gz from here and unzip it.

tar zxvf flowdesigner-0.9.1-hark_*.*.*.tar.gz

Compile and install the source codes.

cd flowdesigner-0.9.1-hark-*.*.*
./configure --prefix=/usr/local && make && sudo make install

The "*.*.*" describes the package version.

Step3 : libharkio3 installation instruction

Move to your preferred directory.

cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

Download the latest libharkio3_*.*.*.tar.gz from here and unzip it.

tar zxvf libharkio3_*.*.*.tar.gz

Install dependent packages, compile, and install

cd libharkio3/
sudo sh bootstrap.sh
mkdir build
cd build/
cmake ..
make
sudo make install

Step4 : libharknetapi installation instruction

Move to your preferred directory.

cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

Download the latest libharknetapi-*.*.*.tar.gz from here and unzip it.

tar zxvf libharknetapi-*.*.*.tar.gz

Compile the source codes.

cd libharknetapi-*.*.*
make static

The "*.*.*" describes the package version.

Step5 : hark-fd installation instruction

Move to your preferred directory.

cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

Download the latest hark-fd_*.*.*.tar.gz from here and unzip it.

tar zxvf hark-fd-*.*.*.tar.gz

Compile and install the source codes. If you did Step4, use the following commands.

cd hark-fd-*.*.*
./configure --prefix=/usr/local --enable-harknetapi --with-harknetapi-inc=${HOME}/YOUR_HARK_DOWNLOAD_DIR/libharknetapi-*.*.* --with-harknetapi-lib=${HOME}/YOUR_HARK_DOWNLOAD_DIR/libharknetapi-*.*.* && make && sudo make install

If you didn't do Step4, use the following commands.

cd hark-fd-*.*.*
./configure --prefix=/usr/local && make && sudo make install

The "*.*.*" describes the package version.

Step6 : julius-x.x.x-hark installation instruction

Move to your preferred directory.

cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

Download the latest julius-x.x.x-hark-*.*.*.tar.gz and julius-x.x.x-hark-plugin-*.*.*.tar.gz from here and unzip them.

tar zxvf julius-x.x.x-hark-*.*.*.tar.gz
tar zxvf julius-x.x.x-hark-plugin-*.*.*.tar.gz

Compile and install the source codes.

cd julius-x.x.x-hark-*.*.*
./configure --prefix=/usr/local --enable-mfcnet && make && sudo make install
cd ../julius-x.x.x-hark-plugin-*.*.*
make

To use the plugin you have to rewrite the jconf file to add following option.

-plugindir ${HOME}/YOUR_HARK_DOWNLOAD_DIR/julius-x.x.x-hark-plugin-*.*.*

The "x.x.x" describes the Julius version.

The "*.*.*" describes the package version.

Step7 : harktool4-cui installation instruction

Move to your preferred directory.

cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

Download the latest harktool4-*.*.*.tar.gz from here and unzip it.

tar zxvf harktool4-cui_*.*.*.tar.gz

Compile and install the source codes.

cd harktool4-*.*.*
CPPFLAGS=-std=c++0x ./configure && make && sudo make install

The "*.*.*" describes the package version.

Step8 : harktool4-gui installation instruction

Move to your preferred directory.

cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

Download the latest harktool4-gui-*.*.*.tar.gz from here and unzip it.

tar zxvf harktool4-*.*.*.tar.gz

Compile and install the source codes.

cd harktool4-gui-*.*.*
sudo apt-get install qtcreator 
qmake -r prefix=/usr/local && make && sudo make install

The "*.*.*" describes the package version.

Step9 : harktool5-cui installation instruction

Move to your preferred directory.

cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

Download the latest harktool5_*.*.*.tar.gz from here and unzip it.

tar zxvf harktool5_*.*.*.tar.gz

Compile and install the source codes.

cd harktool5/
mkdir build
cd build/
cmake -DCMAKE_BUILD_TYPE=Production ..
make
sudo make install

Step10 : kaldidecoder-hark installation instruction

See hark-document 6.8.2 KaldiDecoder 6.8.2.5 Installation method

[Obsolete] Step3 : libharkio2 installation instruction

Move to your preferred directory.

cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR

Download the latest libharkio2-*.*.*.tar.gz from here and unzip it.

tar zxvf libharkio2-*.*.*.tar.gz

Compile and install the source codes.

cd libharkio2-*.*.*
./configure --prefix=/usr/local && make && sudo make install

The "*.*.*" describes the package version.


 Combination of Installations by Pre-compiled Binaries and Source Compilation (Optional)


If the location of flowdesigner-0.9.1-hark and other packages is different, follow this section.
Basically, pre-compiled binaries installs packages in "/usr".
On the other hand, you can install packages in arbitrary locations by source compilation. For instance, "/usr/local" if "--prefix=/usr/local".

flowdesigner-0.9.1-hark installation by pre-compiled binaries

flowdesigner-0.9.1-hark is installed in /usr.
If you install other packages in /usr/local, set the following in ~/.bashrc.

export FLOWDESIGNER_PATH=$FLOWDESIGNER_PATH:/usr/local/lib

Here is the command line for setting the line above.

echo "export FLOWDESIGNER_PATH=$FLOWDESIGNER_PATH:/usr/local/lib" >> ~/.bashrc

flowdesigner-0.9.1-hark installation by source compilation

flowdesigner-0.9.1-hark is installed by source compilation.
Suppose we install it in /usr/local.
If you install other packages by pre-compiled binaries in /usr, set the following in ~/.bashrc.

export FLOWDESIGNER_PATH=$FLOWDESIGNER_PATH:/usr/lib

Here is the command line for setting the line above.

echo "export FLOWDESIGNER_PATH=$FLOWDESIGNER_PATH:/usr/lib" >> ~/.bashrc