torchaudio_load.Rd
Loads an audio file from disk using the default loader (getOption("torchaudio.loader")).
torchaudio_load(
filepath,
offset = 0L,
duration = -1L,
unit = c("samples", "time")
)
(str): Path to audio file
(int): Number of frames (or seconds) from the start of the file to begin data loading. (Default: 0
)
(int): Number of frames (or seconds) to load. -1
to load everything after the offset. (Default: -1
)
(str): "sample" or "time". If "sample" duration and offset will be interpreted as frames, and as seconds otherwise.