readAudio | R Documentation |
Loads all audio files in the specified directory and provides the option to filter via ID, conditions, and/or dimensions.
readAudio(path = ".", filter = c(), fileType = "wav", recursive = FALSE)
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. |
Returns a list of Wave objects.
readAudio(system.file("Audios", package = "voiceR"),
fileType = "wav", recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.