torchaudio_load {torchaudio} | R Documentation |
Load Audio File
Description
Loads an audio file from disk using the default loader (getOption("torchaudio.loader")).
Usage
torchaudio_load(
filepath,
offset = 0L,
duration = -1L,
unit = c("samples", "time")
)
Arguments
filepath |
(str): Path to audio file |
offset |
(int): Number of frames (or seconds) from the start of the file to begin data loading. (Default: |
duration |
(int): Number of frames (or seconds) to load. |
unit |
(str): "sample" or "time". If "sample" duration and offset will be interpreted as frames, and as seconds otherwise. |
[Package torchaudio version 0.3.1 Index]