#!/bin/sh NAME=$1 # Initial labeling date ./bin/do_build parallel build_prompts ./bin/do_build label ./bin/do_clustergen parallel build_utts # To save some space rm -rf ehmm/feat rm -rf ehmm/binfeat # Build first generation of voice # A slightly different set of duration features for flite (ok for festival) #cp -p $FESTVOXDIR/src/clustergen/statedur.feats_flite festival/dur/etc/statedur.feats ./bin/do_clustergen generate_statenames ./bin/do_clustergen parallel f0 ./bin/do_clustergen parallel mcep ./bin/do_clustergen parallel voicing ./bin/do_clustergen parallel combine_coeffs_v ./bin/traintest etc/txt.done.data ./bin/do_clustergen parallel cluster etc/txt.done.data.train ./bin/do_clustergen dur etc/txt.done.data.train # Test initial build to get basic stats $FESTVOXDIR/src/clustergen/cg_test resynth cgp >mcd-base.out mv dur.dur.S25.out dur.dur.S25.out-base # Do 10 iterations of move label to improve build $FESTVOXDIR/src/clustergen/do_move_label 10 # Select the best build $FESTVOXDIR/src/clustergen/do_move_label select # Rebuild with best labels ./bin/do_clustergen cluster etc/txt.done.data.train ./bin/do_clustergen dur etc/txt.done.data.train # Final stats $FESTVOXDIR/src/clustergen/cg_test resynth cgp >mcd.out # Build a flite voice from this build rm -rf flite $FLITEDIR/tools/setup_flite ./bin/build_flite cg 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}