HTS demo搭建

  1. 预备安装
    • sudo apt-get install libx11-dev
    • sudo apt-get install g++
    • sudo apt-get install libc6-dev-i386
    • sudo apt-get install build-essential
    • sudo apt-get install libncurses5-dev
    • sudo apt-get install sox
    • sudo apt-get install csh
  2. HTK,HTS,HDecode
    • 参考 esignal.c:974: error: ‘ARCH’ undeclared (first use in this function)
    • 参考 HTK-3.4.1在ubuntu 14.04下的安装及Demo测试
    • 下载:账号 Yolanda
      • HTK(3.4.1)
      • HTS(2.3)
      • HDecode(3.4.1)
    • 在/home/majing/Software目录下
      • tar zvxf HTK-3.4.1.tar.gz
      • tar zvxf HDecode-3.4.1.tar.gz
      • tar -xf HTS-2.3_for_HTK-3.4.1.tar.bz2 -C ./htk
      • cd htk
      • patch -p1 -d . < HTS-2.3_for_HTK-3.4.1.patch
      • 将 esignal.c 代码中 if (strcmp(architecture, ARCH) == 0) 改为 if(strcmp(architecture, “amd64”) == 0)
      • 将 architecture = ARCH改为architecture = “amd64”
      • export C_INCLUDE_PATH={/usr/include/x86_64-linux-gnu}:%C_INCLUDE_PATH
      • sudo ./configure
      • sudo make all
      • PATH=”$PATH:/usr/local/HTS-2.3/bin:.”
      • export PATH
    • 测试
      • 将HTKSample解压到htk目录中
      • cd samples
      • cd HTKDemo
      • mkdir -p hmms/{tmp, hmm.{0,1,2,3}} proto au test
      • perl runDemo configs/monPlainM1S1.dcf
  3. SPTK

    • 下载 SPTK
    • 在/home/majing/Software目录下
      • tar zvxf SPTK-3.9.tar.gz
      • 将raw2wav.in文件中
         set whitespace = 0
         set index   set index

    修改为

    set whitespace = 0
    set index    set index
    
    if ($?uid) then
         else
             if ($?UID) then
                 set uid = $UID
             else
                 set uid
             endif
    endif
    
     @ i = 0     @ i = 0
     while ($i < $#argv)  while ($i < $#argv)
         @ i++       @ i++
    • 将wav2raw.in文件做同样修改
    • sudo ./configure
    • sudo make
    • sudo make install
      • 测试
      • 下载Reference SPTKref-3.9.pdf
      • 下载Example SPTKexamples-3.9.pdf
      • 下载Data SPTKexamples-data-3.9.tar.gz
      • 在/home/majing/Software/SPTK-3.9目录下
        • tar zvxf SPTKexamples-data-3.9.tar.gz
        • cd SPTKexamples-data-3.9
        • 根据pdf的用法去测试
      • 参考 SCM Repositories - sp-tk
  4. Festival,Speech-Tools
    • 参考 Installing HTS 3.4.1 and HTS 2.2 on Ubuntu 11.10
    • 下载 festival-2.4-release.tar.gz
    • 下载 speech_tools-2.4-release.tar.gz
    • 下载 festvox_cmu_us_ahw_cg.tar.gz
    • 在/home/majing/Software目录下
      • tar vxf festival-2.4-release.tar.gz
      • tar vxf speech_tools-2.4-release.tar.gz
      • tar zvxf festvox_cmu_us_jmk_cg.tar.gz
      • cd speech_tools
      • sudo ./configure
      • sudo make all
      • sudo make install
      • cd festival
      • sudo make all
      • sudo make install
  5. STRAIGHT
    • 在/home/majing/Software下git clone https://github.com/shuaijiang/STRAIGHT

你可能感兴趣的:(HTS,HTS)