# HG changeset patch # User tomwalters # Date 1281568287 0 # Node ID 3dcc10af731d44b017d80cffe5266fd310e9c165 # Parent 37b084ec9770c316be01d71d63f6eaa7f68e2821 - AWS diff -r 37b084ec9770 -r 3dcc10af731d experiments/scripts/cnbh-syllables/feature_generation/run_mfcc_vtln_conversion.sh --- a/experiments/scripts/cnbh-syllables/feature_generation/run_mfcc_vtln_conversion.sh Wed Aug 11 22:53:59 2010 +0000 +++ b/experiments/scripts/cnbh-syllables/feature_generation/run_mfcc_vtln_conversion.sh Wed Aug 11 23:11:27 2010 +0000 @@ -104,16 +104,6 @@ 215.2p121.0s EOF -echo "Generating script..." -exec 3> $FEATURES_DIR/$FULL_LIST -for syllable in $(cat $FEATURES_DIR/${SYLLIST}.tmp); do - for speaker in $(cat $FEATURES_DIR/${TALKERS}.tmp); do - SOURCE_FILENAME=$SOUND_SOURCE/$syllable/${syllable}${speaker}.wav - DEST_FILENAME=$FEATURES_DIR/$syllable/${syllable}${speaker}.htk - echo "$SOURCE_FILENAME ${DEST_FILENAME}" >&3 - done -done -exec 3>&- # Make the necessary directories for the computed features echo "Making directory structure..." @@ -121,7 +111,6 @@ mkdir -p $FEATURES_DIR/$syllable done - echo "Creating HCopy config file..." cat <<"EOF" > $FEATURES_DIR/${HCOPY_CONFIG} # Coding parameters @@ -145,20 +134,25 @@ WARPUCUTOFF = 23000 EOF -#echo "Splitting data files..." -#cat $WORK/${TRAIN_LIST} $WORK/${TEST_LIST} > $WORK/${COMBINED_LIST} - for TALKER in $(cat $FEATURES_DIR/${TALKERS}.tmp); do + echo "Generating script..." + exec 3> $FEATURES_DIR/${FULL_LIST}_$TALKER + for syllable in $(cat $FEATURES_DIR/${SYLLIST}.tmp); do + SOURCE_FILENAME=$SOUND_SOURCE/$syllable/${syllable}${TALKER}.wav + DEST_FILENAME=$FEATURES_DIR/$syllable/${syllable}${TALKER}.htk + echo "$SOURCE_FILENAME ${DEST_FILENAME}" >&3 + done + exec 3>&- cp $FEATURES_DIR/${HCOPY_CONFIG} $FEATURES_DIR/${HCOPY_CONFIG}_$TALKER - scale=`echo $speaker | sed 's/.*p//' | sed 's/s.*//'` + scale=`echo $TALKER | sed 's/.*p//' | sed 's/s.*//'` warpfactor=0`echo "scale=4; 100.0/$scale" | bc` echo "WARPFREQ = $warpfactor" >> $FEATURES_DIR/${HCOPY_CONFIG}_$TALKER - HCopy -T 1 -C $FEATURES_DIR/${HCOPY_CONFIG}_$TALKER -S $FEATURES_DIR/${TRAIN_LIST}_$TALKER & + HCopy -T 1 -C $FEATURES_DIR/${HCOPY_CONFIG}_$TALKER -S $FEATURES_DIR/${FULL_LIST}_$TALKER done -echo "Waiting for tasks to complete..." -wait -echo "Done!" +#echo "Waiting for tasks to complete..." +#wait +#echo "Done!" rm $FEATURES_DIR/$SYLLIST.tmp rm $FEATURES_DIR/${TALKERS}.tmp diff -r 37b084ec9770 -r 3dcc10af731d experiments/scripts/master.sh --- a/experiments/scripts/master.sh Wed Aug 11 22:53:59 2010 +0000 +++ b/experiments/scripts/master.sh Wed Aug 11 23:11:27 2010 +0000 @@ -48,7 +48,8 @@ # Generate versions of the CNBH syllables spoke pattern with a range of # signal-to-noise ratios (SNRs). The versions are put in the directory # ${SOUNDS_ROOT}/${SNR}_dB/ for each SNR in $SNRS. -SNRS="30 27 24 21 18 15 12 9 6 3 0" +#SNRS="30 27 24 21 18 15 12 9 6 3 0" +SNRS="30" # For testing ./cnbh-syllables/feature_generation/pink_noise.sh $SOUNDS_ROOT/clean/ "$SNRS" # Make the list of all feature drectories