Last chance! 50% off unlimited learning
Sale ends in
Retrieves the unique IDs from the file name of multiple audio files following a naming pattern in which the various components (IDs, dimensions, conditions) are separated by a non-alphanumeric character.
getIds(
path = ".",
audioList = NULL,
fileType = "wav",
fileNamePattern = "ID_Condition_Dimension",
sep = "_",
filter = NULL,
recursive = FALSE
)
Character vector, which contains all the unique IDs extracted from the name pattern of the audio files.
A character string indicating the path to the folder containing the audio files. Default corresponds to the current working directory.
Optional list with Wave objects to analyze.
Character string indicating the file format (wav or mp3) of the audio files. Default corresponds to wav.
Character string indicating the naming format of the audio files, such as "ID-Condition-Dimension", "Condition_ID_Dimension" or "ID". Default corresponds to "ID_Condition_Dimension".
A non alpha-numeric that acts as separator between the different naming components. Default corresponds to underscore.
Optional character vector used to filter for specific audio files. Default corresponds to NULL.
A logical value indicating whether subdirectories should be included when searching for voice files. Default corresponds to FALSE.
getIds(audioList = testAudioList,
fileNamePattern = "ID_Condition_Dimension", sep = "_")
Run the code above in your browser using DataLab