Learn R Programming

torchaudio (version 0.2.2)

tuneR_loader: tuneR_loader

Description

Load an audio located at 'filepath' using tuneR package.

Usage

tuneR_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'