Mercurial > hg > aimc
comparison trunk/scripts/gen_features.sh @ 314:f8aa25bd6085
-New experimental system with pre-noised signals.
author | tomwalters |
---|---|
date | Thu, 04 Mar 2010 11:01:39 +0000 |
parents | 66d5c4d2d90c |
children | 66a23c0545b6 |
comparison
equal
deleted
inserted
replaced
313:1705e25d5a59 | 314:f8aa25bd6085 |
---|---|
5 # Copyright 2009-2010 University of Cambridge | 5 # Copyright 2009-2010 University of Cambridge |
6 # Author: Thomas Walters <tom@acousticscale.org> | 6 # Author: Thomas Walters <tom@acousticscale.org> |
7 | 7 |
8 # Source directory for all the sound files | 8 # Source directory for all the sound files |
9 #SOUND_SOURCE="/Users/Tom/Documents/Work/PhD/HTk-AIM/Sounds/" | 9 #SOUND_SOURCE="/Users/Tom/Documents/Work/PhD/HTk-AIM/Sounds/" |
10 SOUND_SOURCE="/media/sounds-database/cnbh-sounds/" | 10 #SOUND_SOURCE="/media/sounds-database/cnbh-sounds/" |
11 SOUND_SOURCE="/mnt/sounds/snr_+0dB/" | |
11 | 12 |
12 # Location of the AIMCopy binary if not in the path | 13 # Location of the AIMCopy binary if not in the path |
13 AIMCOPY_PREFIX="../aimc-read-only/build/posix-release/" | 14 AIMCOPY_PREFIX="../aimc-read-only/build/posix-release/" |
14 | 15 |
15 MACHINE_CORES=1 | 16 MACHINE_CORES=8 |
16 | 17 |
17 # Names of various internal files and directories. | 18 # Names of various internal files and directories. |
18 # Rename here if you don't like them for some reason. | 19 # Rename here if you don't like them for some reason. |
19 SYLLIST=syls | 20 SYLLIST=syls |
20 TRAIN_SPEAKERS=train_speakers | 21 TRAIN_SPEAKERS=train_speakers |
161 echo "Creating AIMCopy config file..." | 162 echo "Creating AIMCopy config file..." |
162 cat <<"EOF" > $WORK/$AIMCOPY_CONFIG | 163 cat <<"EOF" > $WORK/$AIMCOPY_CONFIG |
163 input.buffersize=480 | 164 input.buffersize=480 |
164 sai.frame_period_ms=10.0 | 165 sai.frame_period_ms=10.0 |
165 slice.normalize=true | 166 slice.normalize=true |
166 ssi.pitch_cutoff=true | |
167 ssi.weight_by_cutoff=false | 167 ssi.weight_by_cutoff=false |
168 ssi.weight_by_scaling=true | 168 ssi.weight_by_scaling=true |
169 ssi.log_cycles_axis=true | 169 ssi.log_cycles_axis=true |
170 EOF | 170 EOF |
171 echo "noise.level_db=$1" >> $WORK/$AIMCOPY_CONFIG | 171 echo "noise.level_db=$1" >> $WORK/$AIMCOPY_CONFIG |