#!/bin/sh ########################################################################### ## ## ## Carnegie Mellon University ## ## Copyright (c) 2017 ## ## All Rights Reserved. ## ## ## ## Permission is hereby granted, free of charge, to use and distribute ## ## this software and its documentation without restriction, including ## ## without limitation the rights to use, copy, modify, merge, publish, ## ## distribute, sublicense, and/or sell copies of this work, and to ## ## permit persons to whom this work is furnished to do so, subject to ## ## the following conditions: ## ## 1. The code must retain the above copyright notice, this list of ## ## conditions and the following disclaimer. ## ## 2. Any modifications must be clearly marked as such. ## ## 3. Original authors' names are not deleted. ## ## 4. The authors' names are not used to endorse or promote products ## ## derived from this software without specific prior written ## ## permission. ## ## ## ## CARNEGIE MELLON UNIVERSITY AND THE CONTRIBUTORS TO THIS WORK ## ## DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ## ## ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ## ## SHALL CARNEGIE MELLON UNIVERSITY NOR THE CONTRIBUTORS BE LIABLE ## ## FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ## ## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ## ## AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ## ## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ## ## THIS SOFTWARE. ## ## ## ########################################################################### ## ## ## Example script used to test the Festival 2.5/Flite 2.1 release ## ## ## ## Downloads code, compiles it, runs the voices, and builds a voice ## ## ## ########################################################################### # Download the code and voices, if not already downloaded if [ ! -d packed ] then mkdir packed cd packed wget http://festvox.org/packed/festival/2.5/festival-2.5.0-release.tar.gz wget http://festvox.org/packed/festival/2.5/speech_tools-2.5.0-release.tar.gz wget http://festvox.org/packed/festival/2.5/festlex_CMU.tar.gz wget http://festvox.org/packed/festival/2.5/festlex_OALD.tar.gz wget http://festvox.org/packed/festival/2.5/festlex_POSLEX.tar.gz FESTIVAL_VOICES=http://festvox.org/packed/festival/2.5/voices/ FESTIVAL_VOICES=http://tts.speech.cs.cmu.edu/awb/festival-2.5/voices wget ${FESTIVAL_VOICES}/festvox_cmu_us_aew_cg.tar.gz wget ${FESTIVAL_VOICES}/festvox_cmu_us_ahw_cg.tar.gz wget ${FESTIVAL_VOICES}/festvox_cmu_us_aup_cg.tar.gz wget ${FESTIVAL_VOICES}/festvox_cmu_us_awb_cg.tar.gz wget ${FESTIVAL_VOICES}/festvox_cmu_us_axb_cg.tar.gz wget ${FESTIVAL_VOICES}/festvox_cmu_us_bdl_cg.tar.gz wget ${FESTIVAL_VOICES}/festvox_cmu_us_clb_cg.tar.gz wget ${FESTIVAL_VOICES}/festvox_cmu_us_eey_cg.tar.gz wget ${FESTIVAL_VOICES}/festvox_cmu_us_fem_cg.tar.gz wget ${FESTIVAL_VOICES}/festvox_cmu_us_gka_cg.tar.gz wget ${FESTIVAL_VOICES}/festvox_cmu_us_jmk_cg.tar.gz wget ${FESTIVAL_VOICES}/festvox_cmu_us_ksp_cg.tar.gz wget ${FESTIVAL_VOICES}/festvox_cmu_us_ljm_cg.tar.gz wget ${FESTIVAL_VOICES}/festvox_cmu_us_lnh_cg.tar.gz wget ${FESTIVAL_VOICES}/festvox_cmu_us_rms_cg.tar.gz wget ${FESTIVAL_VOICES}/festvox_cmu_us_rxr_cg.tar.gz wget ${FESTIVAL_VOICES}/festvox_cmu_us_slt_cg.tar.gz wget ${FESTIVAL_VOICES}/festvox_cmu_us_slp_cg.tar.gz wget ${FESTIVAL_VOICES}/festvox_kallpc16k.tar.gz wget ${FESTIVAL_VOICES}/festvox_rablpc16k.tar.gz wget http://festvox.org/packed/festvox/2.8/festvox-2.8.0-release.tar.gz wget http://festvox.org/packed/sptk/SPTK-3.6.tar.gz wget http://festvox.org/flite/packed/flite-2.1/flite-2.1-release.tar.bz2 FLITE_VOICES=http://festvox.org/flite/packed/flite-2.1/voices FLITE_VOICES=http://tts.speech.cs.cmu.edu/awb/flite-2.1/voices wget ${FLITE_VOICES}/cmu_us_aew.flitevox wget ${FLITE_VOICES}/cmu_us_ahw.flitevox wget ${FLITE_VOICES}/cmu_us_aup.flitevox wget ${FLITE_VOICES}/cmu_us_awb.flitevox wget ${FLITE_VOICES}/cmu_us_axb.flitevox wget ${FLITE_VOICES}/cmu_us_bdl.flitevox wget ${FLITE_VOICES}/cmu_us_clb.flitevox wget ${FLITE_VOICES}/cmu_us_eey.flitevox wget ${FLITE_VOICES}/cmu_us_fem.flitevox wget ${FLITE_VOICES}/cmu_us_gka.flitevox wget ${FLITE_VOICES}/cmu_us_jmk.flitevox wget ${FLITE_VOICES}/cmu_us_ksp.flitevox wget ${FLITE_VOICES}/cmu_us_ljm.flitevox wget ${FLITE_VOICES}/cmu_us_lnh.flitevox wget ${FLITE_VOICES}/cmu_us_rms.flitevox wget ${FLITE_VOICES}/cmu_us_rxr.flitevox wget ${FLITE_VOICES}/cmu_us_slt.flitevox wget ${FLITE_VOICES}/cmu_us_slp.flitevox cd .. fi # Unpack the code and voices mkdir build cd build for i in ../packed/*.gz do tar zxvf $i done for i in ../packed/*.bz2 do tar jxvf $i done mv flite-2.1-release flite # Set up the environment variables for voice building export ESTDIR=`pwd`/speech_tools export FESTVOXDIR=`pwd`/festvox export FLITEDIR=`pwd`/flite export SPTKDIR=`pwd`/SPTK mkdir SPTK export EXDIR=`pwd`/examples mkdir examples echo "A whole joy was reaping, but they've gone south, you should fetch azure mike." >allphones.txt patch -p0