-
Notifications
You must be signed in to change notification settings - Fork 3
augment
David Wood edited this page Apr 7, 2022
·
1 revision
Change 1 or more wave files using 1 or more of the available augmentations. Augmentations are done independently and are not chained in sequence. Augmented wav files are renamed to include a transform indicator. Ann index is included in the file name if the augmentation produced more than a single result. Usage : ... [-o dir ] [-f list ] [-log r] [-m file ] wav files Options: -m file : sets the location of a metadata file defining labels. Causes a new metadata.csv file to be created in the output directory. -o dir : sets the directory to store wav files. Required when metadata.csv is present in the source directory. If not specified, then the source directory is used. -f list : specifies a list of 1 or more frequencies by which to shift the sounds -log r : take the log of the signal values for which the absolute value is greater or equal to r. Smaller values of r accentuate the fainter sounds relative to the louder ones. All signal values are in the range [-1,1]. Examples: ... -log .01 one.wav two.wav ... -m metadata.csv -log 0.001 one.wav two.wav ... -o mydir -m metadata.csv -f -10,0,10 one.wav
Partition a set of sounds defined in a metadata file into 2 or more partitions. For each label value of the specified label, partitions are balanced on the number of sound files for each label value. Usage: ... -label name -dest-dir dir [-partitions n] [-seed n] `dir or metadata file` Required options: -label name : label on sounds used to attempt a balanced partitioning. -dest-dir directory : directory into which to place partition sub-directories containing the metdata file and optionally the sounds in the partition. Optional options: -partitions n : sets the number of partitions to n. Default is 2. -seed n : use another random seed to change randomization. -copy : copy the sound files to the partition directories. Default is to reference the original files in the metadata.csv files written to the partition directories. Examples: ... -label status -dest-dir mydir mysoundsdir ... -label status -dest-dir mydir -copy mysoundsdir ... -label status -dest-dir mydir -partitions 4 mysoundsdir