audiofile_loader: audiofile_loader

View source: R/backend-audiofile.R

audiofile_loaderR Documentation

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'


torchaudio documentation built on Jan. 23, 2023, 5:29 p.m.