audiofile_loader: audiofile_loader

Description Usage Arguments

View source: R/backend-audiofile.R

Description

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

Usage

1
2
3
4
5
6
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'


torchaudio documentation built on May 5, 2021, 5:06 p.m.