Skip to content

Instantly share code, notes, and snippets.

@hattwj
Last active December 23, 2015 06:49
Show Gist options
  • Save hattwj/6596398 to your computer and use it in GitHub Desktop.
Save hattwj/6596398 to your computer and use it in GitHub Desktop.
Playing around with text to voice in Ubuntu 13.04
# Install festival
sudo apt-get install festival festlex-cmu festlex-poslex festlex-oald libestools1.2 unzip
# List installed voices
for d in `ls /usr/share/festival/voices` ; do ls "/usr/share/festival/voices/${d}" ; done
# or festival> (voice.list)
# Create a ~/.festivalrc file and set the default voice
# (set! voice_default 'voice_rab_diphone)
#http://ubuntuforums.org/showthread.php?t=751169
#Download voices
mkdir hts_tmp
cd hts_tmp/
wget -c http://hts.sp.nitech.ac.jp/archives/2.1/festvox_nitech_us_awb_arctic_hts-2.1.tar.bz2
wget -c http://hts.sp.nitech.ac.jp/archives/2.1/festvox_nitech_us_bdl_arctic_hts-2.1.tar.bz2
wget -c http://hts.sp.nitech.ac.jp/archives/2.1/festvox_nitech_us_clb_arctic_hts-2.1.tar.bz2
wget -c http://hts.sp.nitech.ac.jp/archives/2.1/festvox_nitech_us_rms_arctic_hts-2.1.tar.bz2
wget -c http://hts.sp.nitech.ac.jp/archives/2.1/festvox_nitech_us_slt_arctic_hts-2.1.tar.bz2
wget -c http://hts.sp.nitech.ac.jp/archives/2.1/festvox_nitech_us_jmk_arctic_hts-2.1.tar.bz2
wget -c http://hts.sp.nitech.ac.jp/archives/1.1.1/cmu_us_kal_com_hts.tar.gz
wget -c http://hts.sp.nitech.ac.jp/archives/1.1.1/cstr_us_ked_timit_hts.tar.gz
# Unpack
for t in `ls` ; do tar xvf $t ; done
# Install voices
sudo mkdir -p /usr/share/festival/voices/us
sudo mv lib/voices/us/* /usr/share/festival/voices/us/
sudo mv lib/hts.scm /usr/share/festival/hts.scm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment