-
Notifications
You must be signed in to change notification settings - Fork 3
sound info
David Wood edited this page Apr 7, 2022
·
1 revision
Get information about a set of sounds labeled with one or more metadata.csv files or directories containing one. Arguments that that are comma-separated will be treated as a single data set. Alternatively, the -sounds option may be used together with any supported options from the following: [list of wav files] : specifies 1 or more .wav files without labeling. File names are space-separated. The can not be used with the -sounds option. -sounds csv list of (dir|metadata.csv) : specifies 1 or more metadata.csv files referencing sounds or directories containing a metadata.csv. This is an alternative to a list of wav files, but adds labels from metadata files. -metadata (all|some) : require that all files listed in the metadata file to be present. Only used with -sounds option. Default does not require all files. -clipLen double : splits sound recordings up into clips of the given number of milliseconds. Set to 0 to turn off. Defaults to 0 -pad (no|zero|duplicate): when clips are shorter than the requests clip padding can be added to make all clips the same length. Some models may require this. Zero padding sets the added samples to zero. Duplicate reuses the sound as many times a necessary to set the added samples. No padding removes clips shorter than the requested clip length. Default is no padding. -balance: a flag that causes an equal number of sounds for each label value using down sampling for evaluation and training if applicable. Equivalent to '-balance-with down'. -balance-with [up|down|N]: causes the sounds to be balanced across label values for the named label. Samples are up/down-sampled to meet the maximum, minumum or given count, of samples per label value, respectively. Up sampling makes copies of under represented samples and down-sampling randomly selects from across the full set of samples. All balancing is applied after clipping, if requested. -label : required for most operations (i.e. training, evaluation) Required if balancing is requested regardless of the operation performed. Examples: ... metadata.csv ... dir1,dir2/metadata.csv ... metadata1.csv metadat2.csv mydir1,mydir2 ... -sounds dir -clipLen 1000