extractAudioFeatures {communication} | R Documentation |
Title
Description
Title
Usage
extractAudioFeatures(
wav.dir = getwd(),
wav.fnames = NULL,
windowSize = 25,
windowShift = 12.5,
windowType = "HAMMING",
derivatives = 2,
verbose = 1,
recursive = FALSE
)
Arguments
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 |
Value
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().
Examples
## 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)
[Package communication version 0.1 Index]