Learn R Programming

voiceR (version 0.1.0)

readAudio: 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)

Value

Returns a list of Wave objects.

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.

Examples

Run this code
readAudio(system.file("Audios", package = "voiceR"),
fileType = "wav", recursive = TRUE)

Run the code above in your browser using DataLab