Skip to content

Instantly share code, notes, and snippets.

@laic
Last active October 25, 2021 11:00
Show Gist options
  • Save laic/592e6eac1b3aaf59eec2c0cd64a3bfca to your computer and use it in GitHub Desktop.
Save laic/592e6eac1b3aaf59eec2c0cd64a3bfca to your computer and use it in GitHub Desktop.
## install festival using the apt package manager:
## the sudo command will ask you to enter your computer password (assuming you have admin privileges)
## Don't try this on the university computers!
sudo apt-get install festival
## you can try starting festival, it should load with a default voice kal_diphone
# festival
# festival> (SayText "Hello I'm Kal")
## You now need to download the voice to where ubuntu installs the library files
cd /usr/share/festival
## change this to your UUN
YOUR_UUN=s1234567
## You will need to be using the University VPN to copy files from AT lab servers.
## Since we're copying to /usr/share/festival you will need to use the sudo command here too
## first check you are actually in /usr/share/festival
echo `pwd`
## copy the voice you need to analyze: cstr_edi_awb_arctic_multisyn
## get the dictionary
rsync -avz $YOUR_UUN@scp1.ppls.ed.ac.uk:/Volumes/Network/courses/ss/festival/lib.incomplete/dicts .
## Add this installation of festival to the beginning of your PATH, so the computer knows where to look
## to run the application
sudo rsync -avz $YOUR_UUN@scp1.ppls.ed.ac.uk:/Volumes/Network/courses/ss/festival/lib.incomplete/./voices-multisyn/english/cstr_edi_awb_arctic_multisyn . --relative
## get the dictionary (unilex)
sudo rsync -avz $YOUR_UUN@scp1.ppls.ed.ac.uk:/Volumes/Network/courses/ss/festival/lib.incomplete/dicts .
## It seems the libdir variable is getting set to /usr/lib/festival which means festival can't find the multisyn library files.
## One solution is to startup festival with the --libdir option so,
festival --libdir "/usr/share/festival/"
## And if you're in the directory with the config.scm file, add that to the command to set the voice to the one we want
festival --libdir "/usr/share/festival/" config.scm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment