一 hts安装
1. 将原码源码存放与usr/local/src
cd /usr/local/src
tar -zxvf HTK-3.4.1.tar.gz
tar -zxvf HDecode-3.4.1.tar.gz
cd htk
patch -p1 -d . < HTS-2.3_for_HTK-3.4.1.patch
2. apt-get install libx11-dev
3.将 esignal.c 代码中 if (strcmp(architecture, ARCH) == 0) 改为 if(strcmp(architecture, "amd64") == 0);将 architecture = ARCH改为architecture = "amd64"
4. ./configure --prefix=/usr/local/hts
5. make
6. make install
二 sptk安装
1.将原码源码存放与usr/local/src
2.将raw2wav.in文件中
set whitespace = 0
set index set index
改为
set whitespace = 0
set index
if ($?uid) then
else
if ($?UID) then
set uid = $UID
else
set uid
endif
endif
@ i = 0
while ($i < $#argv)
@ i++
将wav2raw.in文件做同样修改
3. apt-get install csh
4. ./configure --prefix=/usr/local/sptk
5. make
6. make install
三 hts_engine_API安装
1.将原码源码存放与usr/local/src
2./configure --prefix=/usr/local/hts_engine_API
3. make
4. make install
四 festival安装
1. 下载festival大全套(festival-2.4-release.tar.gz speech_tools-2.4-release.tar.gz festlex_NAME.tar.gz festvox_NAME.tar.gz ),解压后将原码放在usr/local/src
2. apt-get install ncurses-dev
3.. /configure --prefix=/usr/local/festival(可以将festival和speech_tools都安装在festival文件夹中)
4. make
5.make install
6. 配置
Festival 默认用的是 oss,在一些系统会独占音频。这里我们将配置成使用alsa 发音。
touch ~/.festivalrc
gedit ~/.festivalrc
(Parameter.set 'Audio_Command "aplay -q -c 1 -t raw -f s16 -r $SR $FILE")
(Parameter.set 'Audio_Method 'Audio_Command)