Description Usage Arguments Value Examples
View source: R/extractAudioFeatures.R
Title
1 2 3 4 5 6 7 8 9 10 | extractAudioFeatures(
wav.dir = getwd(),
wav.fnames = NULL,
windowSize = 25,
windowShift = 12.5,
windowType = "HAMMING",
derivatives = 2,
verbose = 1,
recursive = FALSE
)
|
wav.dir |
Directory of wav files for featurization |
wav.fnames |
If wav.dir = NULL, a list of wav files for featurization |
windowSize |
Size of window in milliseconds |
windowShift |
Amoung to shift window in milliseconds |
windowType |
Window type |
derivatives |
Include no (0), first (1), or first and second (2) derivatives of features |
verbose |
Verbose printing |
recursive |
Recursively traverse directory for wav files |
An object of class preppedAudio, which consists of a list of 'data', 'files', and 'control'. 'data' is a list with elements corresponding to audio features for each of the input wav files, where each element is the audio features for the respective wav file. 'files' contains metadata about each wav file for which audio features were extracted. 'control' records arguments passed to extractAudioFeatures().
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
wav.fnames = list.files(file.path('PATH/TO/WAV/FILES'),
pattern = 'wav$',
recursive = TRUE,
full.names = TRUE
)
audio <- extractAudioFeatures(wav.fnames = wav.fnames,
derivatives = 0
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.