Setting up the environment - finiteautomata/synthesis GitHub Wiki
I used Ubuntu 15.04 32-bit desktop for voice compiling.
cd ~
mkdir $HOME/voice
sudo apt-get install mc libc6-dev-i386 libx11-dev libncurses5-dev git libx11-dev:i386 libx11-dev tcl-snack-dev sox g++
- Download from http://hts.sp.nitech.ac.jp/?Download to /voice/sources/
- Download from http://htk.eng.cam.ac.uk/prot-docs/hdecode.shtml to /voice/sources/
- Download from http://htk.eng.cam.ac.uk/download.shtml to /voice/sources/
# I moved this to a github repository, so it is easier to download
# HTUSER=<yourhtkuser>
# HTPASS=<yourhtpass>
# wget http://hts.sp.nitech.ac.jp/archives/2.2/HTS-2.2_for_HTK-3.4.1.tar.bz2 --auth-no-challenge --user=$HTUSER --password=$HTPASS
# wget http://htk.eng.cam.ac.uk/ftp/software/hdecode/HDecode-3.4.1.tar.gz --auth-no-challenge --user=$HTUSER --password=$HTPASS
# wget http://htk.eng.cam.ac.uk/ftp/software/HTK-3.4.1.tar.gz --auth-no-challenge --user=$HTUSER --password=$HTPASS
cd $HOME/voice/
mkdir sources
cd sources
mkdir hts
wget https://github.com/finiteautomata/synthesis/raw/master/downloads/HTS-2.2_for_HTK-3.4.1.tar.bz2
wget https://github.com/finiteautomata/synthesis/raw/master/downloads/HDecode-3.4.1.tar.gz
wget https://github.com/finiteautomata/synthesis/raw/master/downloads/HTK-3.4.1.tar.gz
tar xf HTK-3.4.1.tar.gz
tar xf HDecode-3.4.1.tar.gz
tar xf HTS-2.2_for_HTK-3.4.1.tar.bz2 -C hts
cd htk
patch -f -p1 -d . < ../hts/HTS-2.2_for_HTK-3.4.1.patch
./configure --prefix=$HOME/voice/soft/hts
make all hdecode
make install install-hdecode
Result: files /voice/soft/hts/bin/H*
# wget http://sourceforge.net/projects/hts-engine/files/hts_engine%20API/hts_engine_API-1.05/hts_engine_API-1.05.tar.gz
cd ~/voice/sources/
wget https://github.com/finiteautomata/synthesis/raw/master/downloads/hts_engine_API-1.05.tar.gz
tar xf hts_engine_API-1.05.tar.gz
cd hts_engine_API-1.05
./configure --prefix=$HOME/voice/soft/hts_engine
make
make install
Result: ~/voice/soft/hts_engine/bin/hts_engine
cd $HOME/voice/sources/
wget http://festvox.org/packed/festival/2.4/speech_tools-2.4-release.tar.gz
tar xf speech_tools-2.4-release.tar.gz
cd speech_tools
./configure
make
make test
Result: latest command should show “Test OK”
cd ~/voice/sources
wget http://festvox.org/festvox-2.7/festvox-2.7.0-release.tar.gz
tar xf festvox-2.7.0-release.tar.gz
cd festvox/
./configure && make
cd $HOME/voice/sources/
wget http://festvox.org/packed/festival/2.4/festival-2.4-release.tar.gz
tar xf festival-2.4-release.tar.gz
cd festival/
./configure
make
cd $HOME/voice/sources/
wget http://downloads.sourceforge.net/sp-tk/SPTK-3.4.1.tar.gz
tar xf SPTK-3.4.1.tar.gz
cd SPTK-3.4.1/
./configure --prefix=$HOME/voice/soft/SPTK
make
make install
Result: files /voice/soft/SPTK/bin/*
Be careful. Praat 6 is not compatible with the current version of Mary TTS. Download
mkdir $HOME/voice/soft/praat
cd $HOME/voice/soft/praat
wget https://github.com/praat/praat/releases/download/v5.4.22/praat5422_linux64.tar.gz
tar xf praat5422_linux64.tar.gz
rm praat5422_linux64.tar.gz
Note: you may have other JDK version.
cd $HOME/voice/soft
# Download both MaryTTS Runtime and Builder
wget https://github.com/marytts/marytts/releases/download/v5.1.2/marytts-5.1.2.zip
wget https://github.com/marytts/marytts/releases/download/v5.1.2/marytts-builder-5.1.2.zip
unzip marytts-5.1.2.zip
unzip marytts-builder-5.1.2.zip
mv marytts-5.1.2 marytts
mv marytts-builder-5.1.2 marytts-builder
rm *.zip
# Add paths to .bashrc
# If you are *not* in Ubuntu, check where you should put this instead of .bashrc
echo 'export PATH="$PATH:$HOME/voice/soft/hts/bin:$HOME/voice/soft/hts_engine/bin:$HOME/voice/soft/SPTK/bin:$HOME/voice/soft/marytts/bin:$HOME/voice/soft/marytts-builder/bin:$HOME/voice/soft/praat"' >> ~/.bashrc
cd $HOME/voice/sources/
git clone https://github.com/marytts/marytts.git
git checkout 65ee75ee8473e0d65853b0f8ccac1582ea0cb783
cd marytts/lib/external/ehmm
make
cd ..
# If you are *not* in Ubuntu, check where you should put this instead of .bashrc
echo 'export PATH="$PATH:$HOME/voice/soft/hts/bin:$HOME/voice/soft/hts_engine/bin:$HOME/voice/soft/SPTK/bin:$HOME/voice/sources/marytts/lib/external/ehmm/bin:$HOME/voice/soft/praat"' >> ~/.bashrc
./check_install_external_programs.sh -check
Result: externalBinaries.config. Check should display all OK.
cd $HOME/voice/sources/marytts
#JAVA_HOME=/voice/soft/java
mvn install
Result: /voice/sources/marytts/target/marytts-builder-5.2-SNAPSHOT/bin/voiceimport.sh