Skip to content

Latest commit

 

History

History
149 lines (67 loc) · 4.1 KB

File metadata and controls

149 lines (67 loc) · 4.1 KB

Halef Setup Process

How to setup Kaldi Recognizer and Test Recognition Model

How to setup Cairo Speech Server

How to setup JvoiceXML Voice Browser Application

How to setup Kaldi Recognizer and Test Recognition Model

  1. Make sure that you have latest Ubuntu updates

sudo apt-get update

sudo apt-get dist-upgrade

sudo apt-get upgrade

  1. Install libraries required for Kaldi recognizer

sudo apt-get install zlib1g-dev

sudo apt-get install libatlas3-base

sudo apt-get install libwebsockets-dev

sudo apt-get install libssl-dev

  1. Create Kaldi directory, clone custom Kaldi repository and run build script

mkdir -p /export/Apps/KALDI/

cd /export/Apps/KALDI/

git clone git://git.code.sf.net/p/halef/cassandra halef-cassandra

cd /export/Apps/KALDI/halef-cassandra

bash ./BUILD_KALDI.sh

  1. Copy recognition models and binaries to destination directories

mkdir -p /export/Apps/KALDI/2015-12-21/deployment/bin

cd /export/Apps/KALDI/2015-12-21/deployment

cp /export/Apps/KALDI/2015-12-21/halef-cassandra/kaldi-trunk/src/online2bin/STRM-ASR-server /export/Apps/KALDI/2015-12-21/deployment/bin

chown -R <your_login>:<your_group> /export/Apps/KALDI/2015-12-21

  1. Copy recognition models and startup scripts

cd /export/Apps/KALDI/2015-12-21/deployment/

tar xzvf models.tar.gz

tar xzvf 9404.tar.gz

  1. Start Kaldi instance

cd /export/Apps/KALDI/2015-12-21/deployment/srv/9404

./server.sh &

How to setup Cairo speech server

To setup Cairo instances a convenient setup script has been created.

  1. Download setup script and Kaldi settings files by opening the following links and clicking "Download this file" link on top of each page.

https://sourceforge.net/p/halef/halef-cairo/ci/master/tree/cairo-SETUP/SETUP.sh

https://sourceforge.net/p/halef/halef-cairo/ci/master/tree/cairo-SETUP/SETUP.kaldi.properties

  1. Copy downloaded SETUP.* files into /export/Apps directory on the server and edit them. You will see direcory settings and database connection settings in the top part of SETUP.sh file which you need to correct. SETUP.kaldi.properties should contain at least 1 entry defining item name, server ip and port on which Kaldi is listening. For example: default=localhost:9404
  2. Make sure that you have ~2GB of free space in /export/Apps and server can connect to the Internet for Cairo download.
  3. To install Cairo with Java, please run setup in unattended mode:

./SETUP.sh --quiet

Cairo installation can take considerable time depending on your Internet connection speed.

  1. You can install and run Cairo as service by running CairoService script (please review CairoService file content first to check if all directories are correct there):

cd /export/Apps/Cairo/cairo-VM/scripts

sudo CairoService install

sudo service cairo start

How to setup JvoiceXML Voice Browser Application

  1. For JvoiceXML we recommend using latest version directly from JvoiceXML developer repository (https://github.com/JVoiceXML/JVoiceXML) :

mkdirs -p /export/Apps/JVXML

cd /export/Apps/JVXML

git clone https://github.com/JVoiceXML/JVoiceXML.git

  1. Configure JvoiceXML by copying DB logging file from Cairo:

cp /export/Apps/Cairo/cairo-VM/config/halef-logging-db.xml /export/Apps/JVXML/JvoiceXML/main/

and edit mrcpv2 settings to point to Cairo server by replacing IP for cairoAddress and cairoHost in the file:

/export/Apps/JVXML/JvoiceXML/org.jvoicexml.implementation.mrcpv2/build.gradle

  1. To compile and run JvoiceXML you need Gradle version 3 or higher. Because system apt-get will install only version 2 it is recommended to download Gradle directly from:

https://services.gradle.org/distributions/gradle-3.4.1-bin.zip

and symply unpack it into /export/Apps

  1. You can build and run JvoiceXML using the following commands (or put them into shell script):

cd /export/Apps/JVXML/JvoiceXML/main/

export JAVA_HOME=/export/Apps/jdk

export PATH=/export/Apps/jdk/bin/java:/export/Apps/gradle-3.4.1/bin:$PATH

nohup gradle run