Skip to content

Commit

Permalink
Track fest(vox/ival) and speech_tools repositories, fix CSTR-Edinburg…
Browse files Browse the repository at this point in the history
  • Loading branch information
seblemaguer committed Aug 21, 2019
1 parent 33fa6e6 commit 11dd439
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 44 deletions.
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "tools/speech_tools"]
path = tools/speech_tools
url = https://github.com/festvox/speech_tools.git
[submodule "tools/festival"]
path = tools/festival
url = https://github.com/festvox/festival.git
[submodule "tools/festvox"]
path = tools/festvox
url = https://github.com/festvox/festvox.git
54 changes: 10 additions & 44 deletions tools/compile_other_speech_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,13 @@ current_working_dir=$(pwd)
tools_dir=${current_working_dir}/$(dirname $0)
cd $tools_dir

install_speech_tools=true
install_festival=true
FESTIVAL_BASELINE_URL=http://www.cstr.ed.ac.uk/downloads/festival/2.4
install_speech_tools=false
install_festival=false
install_festvox=true

# 1. Get and compile speech tools
if [ "$install_speech_tools" = true ]; then
echo "downloading speech tools..."
speech_tools_url=http://www.cstr.ed.ac.uk/downloads/festival/2.4/speech_tools-2.4-release.tar.gz
if hash curl 2>/dev/null; then
curl -L -O $speech_tools_url
elif hash wget 2>/dev/null; then
wget $speech_tools_url
else
echo "please download speech tools from $speech_tools_url"
exit 1
fi
tar xzf speech_tools-2.4-release.tar.gz

echo "compiling speech tools..."
(
Expand All @@ -44,17 +34,6 @@ export PATH=$ESTDIR/bin:$PATH

# 2. Get and compile festival, download dicts and some voices
if [ "$install_festival" = true ]; then
echo "downloading festival..."
festival_url=http://www.cstr.ed.ac.uk/downloads/festival/2.4/festival-2.4-release.tar.gz
if hash curl 2>/dev/null; then
curl -L -O $festival_url
elif hash wget 2>/dev/null; then
wget $festival_url
else
echo "please download Festival from $festival_url"
exit 1
fi
tar xzf festival-2.4-release.tar.gz

echo "compiling festival..."
(
Expand All @@ -65,9 +44,9 @@ if [ "$install_festival" = true ]; then
)

echo "downloading some useful lexicons..."
dict1_url=http://www.cstr.ed.ac.uk/downloads/festival/2.4/festlex_CMU.tar.gz
dict2_url=http://www.cstr.ed.ac.uk/downloads/festival/2.4/festlex_OALD.tar.gz
dict3_url=http://www.cstr.ed.ac.uk/downloads/festival/2.4/festlex_POSLEX.tar.gz
dict1_url=$FESTIVAL_BASELINE_URL/festlex_CMU.tar.gz
dict2_url=$FESTIVAL_BASELINE_URL/festlex_OALD.tar.gz
dict3_url=$FESTIVAL_BASELINE_URL/festlex_POSLEX.tar.gz
if hash curl 2>/dev/null; then
curl -L -O $dict1_url
curl -L -O $dict2_url
Expand All @@ -77,7 +56,7 @@ if [ "$install_festival" = true ]; then
wget $dict2_url
wget $dict3_url
else
echo "please download dictionaries from $festival_url"
echo "please download dictionaries from $FESTIVAL_BASELINE_URL"
exit 1
fi
tar xzf festlex_CMU.tar.gz
Expand All @@ -86,9 +65,9 @@ if [ "$install_festival" = true ]; then

echo "downloading some voices for English..."
festival_voice_url=http://festvox.org/packed/festival/2.4/voices
voice1_url=http://www.cstr.ed.ac.uk/downloads/festival/2.4/voices/festvox_kallpc16k.tar.gz
voice2_url=http://www.cstr.ed.ac.uk/downloads/festival/2.4/voices/festvox_rablpc16k.tar.gz
voice3_url=http://www.cstr.ed.ac.uk/downloads/festival/2.4/voices/festvox_cmu_us_slt_cg.tar.gz
voice1_url=$FESTIVAL_BASELINE_URL/voices/festvox_kallpc16k.tar.gz
voice2_url=$FESTIVAL_BASELINE_URL/voices/festvox_rablpc16k.tar.gz
voice3_url=$FESTIVAL_BASELINE_URL/voices/festvox_cmu_us_slt_cg.tar.gz
if hash curl 2>/dev/null; then
curl -L -O $voice1_url
curl -L -O $voice2_url
Expand All @@ -113,18 +92,6 @@ export PATH=$FESTDIR/bin:$PATH

# 3. Get and compile festvox
if [ "$install_festvox" = true ]; then
echo "downloading festvox..."
festvox_url=http://festvox.org/festvox-2.7/festvox-2.7.0-release.tar.gz
if hash curl 2>/dev/null; then
curl -L -O $festvox_url
elif hash wget 2>/dev/null; then
wget $festvox_url
else
echo "please download festvox from $festvox_url"
exit 1
fi
tar xzf festvox-2.7.0-release.tar.gz

echo "compiling festvox..."
(
cd festvox;
Expand Down Expand Up @@ -152,4 +119,3 @@ elif [[ ! -f ${FESTVOXDIR}/src/vc/build_transform ]]; then
else
echo "All tools successfully compiled!!"
fi

1 change: 1 addition & 0 deletions tools/festival
Submodule festival added at c8e979
1 change: 1 addition & 0 deletions tools/festvox
Submodule festvox added at ec3e8b
1 change: 1 addition & 0 deletions tools/speech_tools
Submodule speech_tools added at b8b556

0 comments on commit 11dd439

Please sign in to comment.