readAudio {voiceR} | R Documentation |
Read Audio Files
Description
Loads all audio files in the specified directory and provides the option to filter via ID, conditions, and/or dimensions.
Usage
readAudio(path = ".", filter = c(), fileType = "wav", recursive = FALSE)
Arguments
path |
Character string indicating the full path to the folder containing the audio files. Default corresponds to the current working directory. |
filter |
Optional character vector, containing patterns, such as IDs or conditions of each audio file. |
fileType |
Character string indicating the file format (wav or mp3) of the audio files. Default corresponds to wav. |
recursive |
A logical value indicating whether subdirectories should be included when searching for voice files. Default corresponds to FALSE. |
Value
Returns a list of Wave objects.
Examples
readAudio(system.file("Audios", package = "voiceR"),
fileType = "wav", recursive = TRUE)
[Package voiceR version 0.1.0 Index]