changeset 188:f14ab130c29e

- AWS
author tomwalters
date Wed, 11 Aug 2010 23:11:27 +0000
parents d7dc7014b0af
children 396d04878221
files experiments/scripts/cnbh-syllables/feature_generation/run_mfcc_vtln_conversion.sh experiments/scripts/master.sh
diffstat 2 files changed, 15 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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