------2011.3.7--------------
更改SPTK3.3 為 SPTK3.4
-----------------------------
所需的安裝檔案:
HTK-3.4.1.tar.gz
HDecode-3.4.1.tar.gz
HTS-2.1.1_for_HTK-3.4.1.tar.bz2.tar
SPTK-3.4.tar.gz
ActiveTcl8.4.19.4.292682-linux-ix86.tar.gz
speech_tools-2.0.95-beta.tar.gz
festival-2.0.95-beta.tar.gz
openfst-1.1.tar.gz
hts_engine_API-1.03.tar.gz
//////////////////////////////////////////////////////////
安裝順序:(不可調換順序)
1. HTK
2. HDecode
3. HTS
2. SPTK
4. ActiveTcl
5. speech_tools
6. festival
7. openfst//////////////////////////////////////////////////////////
HTK and HTS system會用到一些linux的package,可以先安裝好.
預先安裝的套件:
sudo aptitude update
sudo aptitude install build-essential
sudo apt-get install gfortran
$ sudo apt-get install build-essential
更改SPTK3.3 為 SPTK3.4
-----------------------------
所需的安裝檔案:
HTK-3.4.1.tar.gz
HDecode-3.4.1.tar.gz
HTS-2.1.1_for_HTK-3.4.1.tar.bz2.tar
SPTK-3.4.tar.gz
ActiveTcl8.4.19.4.292682-linux-ix86.tar.gz
speech_tools-2.0.95-beta.tar.gz
festival-2.0.95-beta.tar.gz
openfst-1.1.tar.gz
hts_engine_API-1.03.tar.gz
//////////////////////////////////////////////////////////
安裝順序:(不可調換順序)
1. HTK
2. HDecode
3. HTS
2. SPTK
4. ActiveTcl
5. speech_tools
6. festival
7. openfst//////////////////////////////////////////////////////////
HTK and HTS system會用到一些linux的package,可以先安裝好.
預先安裝的套件:
sudo aptitude update
sudo aptitude install build-essential
sudo apt-get install gfortran
$ sudo apt-get install build-essential
$ sudo apt-get install libx11-dev
$ sudo apt-get install libncurses5-dev
$ sudo apt-get install libncursesw5-dev
$ sudo apt-get install sox//////////////////////////////////////////////////////////
開始安裝:
將所有壓縮檔放在同一個目錄下,進到那個目錄,開始打指令安裝.
$ tar zvxf HTK-3.4.1.tar.gz
$ tar zvxf HDecode-3.4.1.tar.gz
$ tar -xf HTS-2.1.1_for_HTK-3.4.1.tar.bz2.tar -C ./htk
$ cd htk
htk$ patch –p1 –d . < HTS-2.1.1_for_HTK-3.4.1.patch
htk$ ./configure
htk$ make all
htk$ sudo make install
htk$ cd ..
$ tar zvxf SPTK-3.4.tar.gz
$ cd SPTK-3.4
SPTK-3.4$ ./configure
SPTK-3.4$ make
SPTK-3.4$ sudo make install
SPTK-3.4$ cd ..
$ tar zvxf ActiveTcl8.4.19.4.292682-linux-ix86.tar.gz
$ cd ActiveTcl8.4.19.4.292682-linux-ix86
ActiveTcl8.4.19.4.292682-linux-ix86$ sudo ./install.sh
按照跳出來的安裝精靈安裝完ActiveTcl,目錄都用預設.
ActiveTcl8.4.19.4.292682-linux-ix86$ cd ..
$ tar zvxf speech_tools-2.0.95-beta.tar.gz
$ cd speech_tools
speech_tools$ ./configure
speech_tools$ make
speech_tools$ sudo make install
speech_tools$ cd ..
$ tar zvxf festival-2.0.95-beta.tar.gz
$ cd festival
festival$ ./configure
festival$ make
festival$ sudo make install
festival$ cd ..
$ tar zvxf openfst-1.1.tar.gz
$ cd openfst-1.1
openfst-1.1$ ./configure
openfst-1.1$ make
openfst-1.1$ sudo make install
至此安裝完成.
p.s.
1.可以再安裝hts_engine
$ tar zvxf hts_engine_API-1.03.tar.gz
$ cd hts_engine_hts_engine_API-1.03
hts_engine_API-1.03$ ./configure
hts_engine_API-1.03$ make
hts_engine_API-1.03$ sudo make install
2.$sudo cp -r /usr/local/HTS-2.1.1/bin /usr/local/
可將HTS執行檔複製到主機使得直接打HCopy等指令就可執行HTS程式.
3. 有時候會發生"libfst.so.0 cannot open shared object file"
原因是libfst.so.0安裝在/usr/local/lib,用指令
$sudo cp /usr/local/lib/libfst.so.0 /usr/lib
$sudo cp /usr/local/lib/libfst.so /usr/lib
$sudo cp /usr/local/lib/libfstmain.so.0 /usr/lib
$sudo cp /usr/local/lib/libfstmain.so /usr/lib
複製過去即可.
開始安裝:
將所有壓縮檔放在同一個目錄下,進到那個目錄,開始打指令安裝.
$ tar zvxf HTK-3.4.1.tar.gz
$ tar zvxf HDecode-3.4.1.tar.gz
$ tar -xf HTS-2.1.1_for_HTK-3.4.1.tar.bz2.tar -C ./htk
$ cd htk
htk$ patch –p1 –d . < HTS-2.1.1_for_HTK-3.4.1.patch
htk$ ./configure
htk$ make all
htk$ sudo make install
htk$ cd ..
$ tar zvxf SPTK-3.4.tar.gz
$ cd SPTK-3.4
SPTK-3.4$ ./configure
SPTK-3.4$ make
SPTK-3.4$ sudo make install
SPTK-3.4$ cd ..
$ tar zvxf ActiveTcl8.4.19.4.292682-linux-ix86.tar.gz
$ cd ActiveTcl8.4.19.4.292682-linux-ix86
ActiveTcl8.4.19.4.292682-linux-ix86$ sudo ./install.sh
按照跳出來的安裝精靈安裝完ActiveTcl,目錄都用預設.
ActiveTcl8.4.19.4.292682-linux-ix86$ cd ..
$ tar zvxf speech_tools-2.0.95-beta.tar.gz
$ cd speech_tools
speech_tools$ ./configure
speech_tools$ make
speech_tools$ sudo make install
speech_tools$ cd ..
$ tar zvxf festival-2.0.95-beta.tar.gz
$ cd festival
festival$ ./configure
festival$ make
festival$ sudo make install
festival$ cd ..
$ tar zvxf openfst-1.1.tar.gz
$ cd openfst-1.1
openfst-1.1$ ./configure
openfst-1.1$ make
openfst-1.1$ sudo make install
至此安裝完成.
p.s.
1.可以再安裝hts_engine
$ tar zvxf hts_engine_API-1.03.tar.gz
$ cd hts_engine_hts_engine_API-1.03
hts_engine_API-1.03$ ./configure
hts_engine_API-1.03$ make
hts_engine_API-1.03$ sudo make install
2.$sudo cp -r /usr/local/HTS-2.1.1/bin /usr/local/
可將HTS執行檔複製到主機使得直接打HCopy等指令就可執行HTS程式.
3. 有時候會發生"libfst.so.0 cannot open shared object file"
原因是libfst.so.0安裝在/usr/local/lib,用指令
$sudo cp /usr/local/lib/libfst.so.0 /usr/lib
$sudo cp /usr/local/lib/libfst.so /usr/lib
$sudo cp /usr/local/lib/libfstmain.so.0 /usr/lib
$sudo cp /usr/local/lib/libfstmain.so /usr/lib
複製過去即可.