#!/bin/sh

NAME=$1

# Initial labeling

./bin/do_build build_prompts
./bin/do_build label
./bin/do_build build_utts

# To save some space
rm -rf ehmm/feat

./bin/do_build do_pm
./bin/do_build do_mcep
./bin/do_build build_clunits
./bin/do_build do_dur

echo "A whole joy was reaping but they've gone south, you should fetch azure mike." >whole.txt
./bin/synthfile whole.txt whole_clunits.wav

# Build a flite voice from this build
rm -rf flite
$FLITEDIR/tools/setup_flite
./bin/build_flite
cd flite
make

./flite_cmu_us_${NAME} "A whole joy was reaping, but they've gone south, go fetch azure mike." whole_${NAME}.wav

ls -altr flite_cmu_us_${NAME}


