Learn R Programming

torchaudio (version 0.2.2)

audiofile_loader: audiofile_loader

Description

Load an audio located at 'filepath' using audiofile backend.

Usage

audiofile_loader(
  filepath,
  offset = 0L,
  duration = 0L,
  unit = c("samples", "time")
)

Arguments

filepath

(str) path to the audio file.

offset

(num) the sample (or the second if unit = 'time') where the audio should start.

duration

(num) how many samples (or how many seconds if unit = 'time') should be extracted.

unit

(str) 'samples' or 'time'