Was this page helpful?

多國 TTS - Festival & MBROLA

    Festival - TTS engine
    Home: http://www.cstr.ed.ac.uk/projects/festival/

    MBROLA - 多國語言 Voice
    Home: http://tcts.fpms.ac.be/synthesis/mbr...entrypage.html

    系統環境:Ubuntu 11

    步驟開始

    Festival 下載:http://festvox.org/packed/festival/

    sudo apt-get install festival festlex-cmu festlex-poslex festlex-oald libestools2.1 unzip
    
    apt-cache search festvox-*
    sudo apt-get install festvox-don festvox-rablpc16k festvox-kallpc16k festvox-kdlpc16k
    
    mkdir mbrola_tmp
    cd mbrola_tmp/
    wget http://tcts.fpms.ac.be/synthesis/mbrola/bin/pclinux/mbrola3.0.1h_i386.deb
    wget -c http://tcts.fpms.ac.be/synthesis/mbrola/dba/us1/us1-980512.zip
    wget -c http://tcts.fpms.ac.be/synthesis/mbrola/dba/us2/us2-980812.zip
    wget -c http://tcts.fpms.ac.be/synthesis/mbrola/dba/us3/us3-990208.zip
    wget -c http://festvox.org/packed/festival/1.96/festvox_us1.tar.gz
    wget -c http://festvox.org/packed/festival/1.96/festvox_us2.tar.gz
    wget -c http://festvox.org/packed/festival/1.96/festvox_us3.tar.gz
    sudo dpkg -i mbrola3.0.1h_i386.deb
    unzip -x us1-980512.zip
    unzip -x us2-980812.zip
    unzip -x us3-990208.zip
    tar xvf festvox_us1.tar.gz
    tar xvf festvox_us2.tar.gz
    tar xvf festvox_us3.tar.gz
    
    sudo mkdir -p /usr/share/festival/voices/english/us1_mbrola/
    sudo mkdir -p /usr/share/festival/voices/english/us2_mbrola/
    sudo mkdir -p /usr/share/festival/voices/english/us3_mbrola/
    sudo mv us1 /usr/share/festival/voices/english/us1_mbrola/
    sudo mv us2 /usr/share/festival/voices/english/us2_mbrola/
    sudo mv us3 /usr/share/festival/voices/english/us3_mbrola/
    sudo mv festival/lib/voices/english/us1_mbrola/* /usr/share/festival/voices/english/us1_mbrola/
    sudo mv festival/lib/voices/english/us2_mbrola/* /usr/share/festival/voices/english/us2_mbrola/
    sudo mv festival/lib/voices/english/us3_mbrola/* /usr/share/festival/voices/english/us3_mbrola/
    
    mkdir cmu_tmp
    cd cmu_tmp/
    wget -c http://www.speech.cs.cmu.edu/cmu_arctic/packed/cmu_us_awb_arctic-0.90-release.tar.bz2
    wget -c http://www.speech.cs.cmu.edu/cmu_arctic/packed/cmu_us_bdl_arctic-0.95-release.tar.bz2
    wget -c http://www.speech.cs.cmu.edu/cmu_arctic/packed/cmu_us_clb_arctic-0.95-release.tar.bz2
    wget -c http://www.speech.cs.cmu.edu/cmu_arctic/packed/cmu_us_jmk_arctic-0.95-release.tar.bz2
    wget -c http://www.speech.cs.cmu.edu/cmu_arctic/packed/cmu_us_rms_arctic-0.95-release.tar.bz2
    wget -c http://www.speech.cs.cmu.edu/cmu_arctic/packed/cmu_us_slt_arctic-0.95-release.tar.bz2
    for t in `ls cmu_*` ; do tar xf $t ; done
    rm *.bz2
    mkdir -p /usr/share/festival/voices/english/
    mv * /usr/share/festival/voices/english/
    
    for d in `ls /usr/share/festival/voices/english` ; do
    if [[ "$d" =~ "cmu_us_" ]] ; then
    mv "/usr/share/festival/voices/english/${d}" "/usr/share/festival/voices/english/${d}_clunits"
    fi ; done
    

    開始測試

    檢查 MBROLA Voice

    #festival
    > (voice.list)
    ...
    ...
    > (quit) 
    

    TTS 轉出檔案

    echo "It's such a beautiful day! Why are you in front of the computer?" | text2wave -scale 50 -eval \(voice_cmu_us_bdl_arctic_clunits\) -o beautiful_day_with_voice_cmu_us_bdl_arctic_clunits.wa

    TIPs:

    * text2wave 包含在 festival 套件內。

    * -scale 語音檔的音量。

    * -eval (voice_XXXX),XXXX 是已安裝的 Voice 名稱,若無法執行,括弧可能要加反斜線。

    Was this page helpful?
    標籤 (Edit tags)
    • No tags

    文件 1

    文件大小日期附件上傳者 
     WAV.zip
    語音範例檔
    283.59 KB14:26, 19 May 2012alang動作
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core